Skip to content

Commit 3b30f2a

Browse files
committed
chore: revert unwanted changes
1 parent 37a1090 commit 3b30f2a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pkg/commands/internal/migrate/migrate_linter_names.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ func ProcessEffectiveFormatters(old versionone.Linters) []string {
6969
func disableAllFilter(old versionone.Linters) []string {
7070
// Note:
7171
// - disable-all + enable-all
72-
// => impossible (https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L38)
72+
// => impossible (https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L38)
7373
// - disable-all + disable
74-
// => impossible (https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L47)
74+
// => impossible (https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L47)
7575

7676
// if disable-all -> presets fast enable
7777
// - presets fast enable: (presets - [slow]) + enable => effective enable + none
@@ -98,11 +98,11 @@ func disableAllFilter(old versionone.Linters) []string {
9898
func enableAllFilter(old versionone.Linters) []string {
9999
// Note:
100100
// - enable-all + disable-all
101-
// => impossible (https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L38)
101+
// => impossible (https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L38)
102102
// - enable-all + enable + fast=false
103-
// => impossible (https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L52)
103+
// => impossible (https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L52)
104104
// - enable-all + enable + fast=true
105-
// => possible (https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L51)
105+
// => possible (https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L51)
106106

107107
// if enable-all -> presets fast enable disable
108108
// - presets fast enable disable: all - fast - enable + disable => effective disable + all
@@ -133,7 +133,7 @@ func enableAllFilter(old versionone.Linters) []string {
133133
func defaultLintersFilter(old versionone.Linters) (enable, disable []string) {
134134
// Note:
135135
// - a linter cannot be inside `enable` and `disable` in the same configuration
136-
// => https://github.com/golangci/golangci-lint/v2/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L66
136+
// => https://github.com/golangci/golangci-lint/blob/e1eb4cb2c7fba29b5831b63e454844d83c692874/pkg/config/linters.go#L66
137137

138138
// if default -> presets fast disable
139139
// - presets > fast > disable > enable => effective enable + disable + standard

pkg/result/processors/exclusion_generated_file_matcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (p *GeneratedFileMatcher) IsGeneratedFile(filepath string, src any) (bool,
6464

6565
// isGeneratedFileLax reports whether the source file is generated code.
6666
// The function uses a bit laxer rules than isGeneratedFileStrict to match more generated code.
67-
// See https://github.com/golangci/golangci-lint/v2/issues/48 and https://github.com/golangci/golangci-lint/v2/issues/72.
67+
// See https://github.com/golangci/golangci-lint/issues/48 and https://github.com/golangci/golangci-lint/issues/72.
6868
func (p *GeneratedFileMatcher) isGeneratedFileLax(doc string) bool {
6969
markers := []string{genCodeGenerated, genDoNotEdit, genAutoFile, genSwaggerCodegen}
7070

0 commit comments

Comments
 (0)