Skip to content

Commit f95b1ed

Browse files
authored
golint: deprecation (#1965)
1 parent ce67262 commit f95b1ed

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.golangci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ linters-settings:
3434
min-complexity: 15
3535
goimports:
3636
local-prefixes: github.com/golangci/golangci-lint
37-
golint:
38-
min-confidence: 0
3937
gomnd:
4038
settings:
4139
mnd:
@@ -82,7 +80,6 @@ linters:
8280
- gocyclo
8381
- gofmt
8482
- goimports
85-
- golint
8683
- gomnd
8784
- goprintffuncname
8885
- gosec

pkg/lint/lintersdb/manager.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
169169
WithSince("v1.0.0").
170170
WithLoadForGoAnalysis().
171171
WithPresets(linter.PresetStyle).
172-
WithURL("https://github.com/golang/lint"),
172+
WithURL("https://github.com/golang/lint").
173+
Deprecated("The repository of the linter has been archived by the owner.", "v1.41.0", "revive"),
173174
linter.NewConfig(golinters.NewRowsErrCheck()).
174175
WithSince("v1.23.0").
175176
WithLoadForGoAnalysis().

test/run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestTimeoutInConfig(t *testing.T) {
9191

9292
func TestTestsAreLintedByDefault(t *testing.T) {
9393
testshared.NewLintRunner(t).Run(getTestDataDir("withtests")).
94-
ExpectHasIssue("`if` block ends with a `return`")
94+
ExpectHasIssue("don't use `init` function")
9595
}
9696

9797
func TestCgoOk(t *testing.T) {

test/testdata/default_exclude.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//args: -Estylecheck,golint
1+
//args: -Estylecheck,golint --internal-cmd-test
22
//config_path: testdata/configs/default_exclude.yml
33

44
/*Package testdata ...*/

test/testdata/golint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//args: -Egolint
1+
//args: -Egolint --internal-cmd-test
22
package testdata
33

44
var Go_lint string // ERROR "don't use underscores in Go names; var `Go_lint` should be `GoLint`"

0 commit comments

Comments
 (0)