Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@quasilyte
Copy link
Member

Finds top-level symbols that have a name that will shadow a
builtin identifier for the entire package.

Unlike builtinShadow, it's not a style but rather a diganostic check.

Fixes #868

Signed-off-by: Iskander Sharipov [email protected]

@quasilyte quasilyte force-pushed the quasilyte/addChecker/builtinShadowDecl branch from fd07b28 to dd98420 Compare September 11, 2020 23:45
cristaloleg
cristaloleg previously approved these changes Sep 12, 2020
@@ -0,0 +1,21 @@
package checker_test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add type int = struct{} too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Finds top-level symbols that have a name that will shadow a
builtin identifier for the entire package.

Unlike builtinShadow, it's not a style but rather a diganostic check.

Fixes #868

Signed-off-by: Iskander Sharipov <[email protected]>
@quasilyte quasilyte force-pushed the quasilyte/addChecker/builtinShadowDecl branch from dd98420 to 1afc947 Compare September 12, 2020 07:29
@quasilyte quasilyte merged commit 324b439 into master Sep 12, 2020
@quasilyte quasilyte deleted the quasilyte/addChecker/builtinShadowDecl branch September 12, 2020 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gocritic print nothing in case of builtinShadow for int type

3 participants