golint: deprecation (#1965)

This commit is contained in:
Ludovic Fernandez 2021-05-11 00:50:50 +02:00 committed by GitHub
parent ce672624fe
commit f95b1ed39f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 7 deletions

View file

@ -91,7 +91,7 @@ func TestTimeoutInConfig(t *testing.T) {
func TestTestsAreLintedByDefault(t *testing.T) {
testshared.NewLintRunner(t).Run(getTestDataDir("withtests")).
ExpectHasIssue("`if` block ends with a `return`")
ExpectHasIssue("don't use `init` function")
}
func TestCgoOk(t *testing.T) {

View file

@ -1,4 +1,4 @@
//args: -Estylecheck,golint
//args: -Estylecheck,golint --internal-cmd-test
//config_path: testdata/configs/default_exclude.yml
/*Package testdata ...*/

View file

@ -1,4 +1,4 @@
//args: -Egolint
//args: -Egolint --internal-cmd-test
package testdata
var Go_lint string // ERROR "don't use underscores in Go names; var `Go_lint` should be `GoLint`"