File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,6 @@ var defaultLintersSettings = LintersSettings{
152
152
SkipRegexp : `(export|internal)_test\.go` ,
153
153
AllowPackages : []string {"main" },
154
154
},
155
- Unparam : UnparamSettings {
156
- Algo : "cha" ,
157
- },
158
155
Unused : UnusedSettings {
159
156
FieldWritesAreUses : true ,
160
157
PostStatementsAreReads : false ,
Original file line number Diff line number Diff line change 8
8
9
9
"github.com/golangci/golangci-lint/pkg/config"
10
10
"github.com/golangci/golangci-lint/pkg/goanalysis"
11
- "github.com/golangci/golangci-lint/pkg/lint/linter"
12
11
)
13
12
14
13
const linterName = "unparam"
@@ -33,11 +32,7 @@ func New(settings *config.UnparamSettings) *goanalysis.Linter {
33
32
"Reports unused function parameters" ,
34
33
[]* analysis.Analyzer {analyzer },
35
34
nil ,
36
- ).WithContextSetter (func (lintCtx * linter.Context ) {
37
- if settings .Algo != "cha" { // TODO(ldez): is it deprecated? Remove?
38
- lintCtx .Log .Warnf ("`linters.settings.unparam.algo` isn't supported by the newest `unparam`" )
39
- }
40
- }).WithLoadMode (goanalysis .LoadModeTypesInfo )
35
+ ).WithLoadMode (goanalysis .LoadModeTypesInfo )
41
36
}
42
37
43
38
func runUnparam (pass * analysis.Pass , settings * config.UnparamSettings ) error {
You can’t perform that action at this time.
0 commit comments