1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-29 22:28:23 +02:00

feature: var-naming - add more bad package names and check for collisions with standard lib packages (#1540)

This commit is contained in:
Collie
2025-10-15 06:20:44 +01:00
committed by GitHub
parent c603da3180
commit bc38b79980
7 changed files with 84 additions and 18 deletions

6
testdata/var_naming_top_level_pkg.go vendored Normal file
View File

@@ -0,0 +1,6 @@
package pkg // MATCH /should not have a root level package called pkg/
const (
Foo = "bar"
Bar = "foo"
)