github.com/azazeal/revive@v1.0.9/testdata/disable-annotations.go (about) 1 package fixtures 2 3 //revive:disable 4 func Public1() { 5 } 6 7 //revive:enable 8 9 func Public2() { // MATCH /exported function Public2 should have comment or be unexported/ 10 } 11 12 //revive:disable:exported 13 func Public3() { 14 } 15 16 //revive:enable:exported 17 18 //revive:disable:random 19 20 func Public4() { // MATCH /exported function Public4 should have comment or be unexported/ 21 } 22 23 //revive:enable:random