golint: deprecation (#1965)
This commit is contained in:
parent
ce672624fe
commit
f95b1ed39f
@ -34,8 +34,6 @@ linters-settings:
|
|||||||
min-complexity: 15
|
min-complexity: 15
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/golangci/golangci-lint
|
local-prefixes: github.com/golangci/golangci-lint
|
||||||
golint:
|
|
||||||
min-confidence: 0
|
|
||||||
gomnd:
|
gomnd:
|
||||||
settings:
|
settings:
|
||||||
mnd:
|
mnd:
|
||||||
@ -82,7 +80,6 @@ linters:
|
|||||||
- gocyclo
|
- gocyclo
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
|
||||||
- gomnd
|
- gomnd
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- gosec
|
- gosec
|
||||||
|
@ -169,7 +169,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
WithSince("v1.0.0").
|
WithSince("v1.0.0").
|
||||||
WithLoadForGoAnalysis().
|
WithLoadForGoAnalysis().
|
||||||
WithPresets(linter.PresetStyle).
|
WithPresets(linter.PresetStyle).
|
||||||
WithURL("https://github.com/golang/lint"),
|
WithURL("https://github.com/golang/lint").
|
||||||
|
Deprecated("The repository of the linter has been archived by the owner.", "v1.41.0", "revive"),
|
||||||
linter.NewConfig(golinters.NewRowsErrCheck()).
|
linter.NewConfig(golinters.NewRowsErrCheck()).
|
||||||
WithSince("v1.23.0").
|
WithSince("v1.23.0").
|
||||||
WithLoadForGoAnalysis().
|
WithLoadForGoAnalysis().
|
||||||
|
@ -91,7 +91,7 @@ func TestTimeoutInConfig(t *testing.T) {
|
|||||||
|
|
||||||
func TestTestsAreLintedByDefault(t *testing.T) {
|
func TestTestsAreLintedByDefault(t *testing.T) {
|
||||||
testshared.NewLintRunner(t).Run(getTestDataDir("withtests")).
|
testshared.NewLintRunner(t).Run(getTestDataDir("withtests")).
|
||||||
ExpectHasIssue("`if` block ends with a `return`")
|
ExpectHasIssue("don't use `init` function")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCgoOk(t *testing.T) {
|
func TestCgoOk(t *testing.T) {
|
||||||
|
2
test/testdata/default_exclude.go
vendored
2
test/testdata/default_exclude.go
vendored
@ -1,4 +1,4 @@
|
|||||||
//args: -Estylecheck,golint
|
//args: -Estylecheck,golint --internal-cmd-test
|
||||||
//config_path: testdata/configs/default_exclude.yml
|
//config_path: testdata/configs/default_exclude.yml
|
||||||
|
|
||||||
/*Package testdata ...*/
|
/*Package testdata ...*/
|
||||||
|
2
test/testdata/golint.go
vendored
2
test/testdata/golint.go
vendored
@ -1,4 +1,4 @@
|
|||||||
//args: -Egolint
|
//args: -Egolint --internal-cmd-test
|
||||||
package testdata
|
package testdata
|
||||||
|
|
||||||
var Go_lint string // ERROR "don't use underscores in Go names; var `Go_lint` should be `GoLint`"
|
var Go_lint string // ERROR "don't use underscores in Go names; var `Go_lint` should be `GoLint`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user