Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-tool: Lint/Static Analysis detecting append only slices. #2543

Closed
bwplotka opened this issue Apr 30, 2020 · 9 comments
Closed

dev-tool: Lint/Static Analysis detecting append only slices. #2543

bwplotka opened this issue Apr 30, 2020 · 9 comments
Labels

Comments

@bwplotka
Copy link
Member

Recently we made trivial bug: We forgot to clean reusable slice. Wonder if there is any technique we could detect this on CI.

For human when we search of duplicatedID usages,we can clearly see it's only defined and appended nothing more. Ref: #2459 (comment)

🤔

cc @pstibrany

@stale
Copy link

stale bot commented May 30, 2020

Hello 👋 Looks like there was no activity on this issue for last 30 days.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label May 30, 2020
@bwplotka
Copy link
Member Author

bwplotka commented Jun 1, 2020

Still to do (:

@stale stale bot removed the stale label Jun 1, 2020
@stale
Copy link

stale bot commented Jul 1, 2020

Hello 👋 Looks like there was no activity on this issue for last 30 days.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label Jul 1, 2020
@bwplotka bwplotka removed the stale label Jul 6, 2020
@yeya24
Copy link
Contributor

yeya24 commented Jul 21, 2020

This is useful. But how does the linter know whether one slice is reusable or not? That might require some comments on the slice like lint:reusable to note it should be reused.

@bwplotka
Copy link
Member Author

bwplotka commented Jul 21, 2020 via email

@stale
Copy link

stale bot commented Aug 21, 2020

Hello 👋 Looks like there was no activity on this issue for last 30 days.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label Aug 21, 2020
@stale
Copy link

stale bot commented Aug 28, 2020

Closing for now as promised, let us know if you need this to be reopened! 🤗

@stale stale bot closed this as completed Aug 28, 2020
@bwplotka bwplotka reopened this Aug 28, 2020
@stale stale bot removed the stale label Aug 28, 2020
@stale
Copy link

stale bot commented Oct 28, 2020

Hello 👋 Looks like there was no activity on this issue for the last two months.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity in the next two weeks, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label Oct 28, 2020
@stale
Copy link

stale bot commented Nov 11, 2020

Closing for now as promised, let us know if you need this to be reopened! 🤗

@stale stale bot closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants