1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-25 22:12:38 +02:00

renames fixtures as testdata to avoid spurious dependencies (#359)

This commit is contained in:
SalvadorC
2020-03-02 20:12:43 +01:00
committed by GitHub
parent 4af5ef3e1c
commit c469747758
80 changed files with 2 additions and 2 deletions

23
testdata/disable-annotations.go vendored Normal file
View File

@@ -0,0 +1,23 @@
package fixtures
//revive:disable
func Public1() {
}
//revive:enable
func Public2() { // MATCH /exported function Public2 should have comment or be unexported/
}
//revive:disable:exported
func Public3() {
}
//revive:enable:exported
//revive:disable:random
func Public4() { // MATCH /exported function Public4 should have comment or be unexported/
}
//revive:enable:random