-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Comments
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Still to do (: |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
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 |
This is the linter magic we need ;p Similar to how vet works.
…On Tue, 21 Jul 2020 at 14:16, Ben Ye ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2543 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3O54BDMKLZLYWCFTIXLR4WILXANCNFSM4MVSJLFQ>
.
|
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
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
The text was updated successfully, but these errors were encountered: