Skip to content

Commit 7b39825

Browse files
committed
feat: new preset names
1 parent e401b34 commit 7b39825

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

.golangci.next.reference.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ linters:
282282
# Default: []
283283
presets:
284284
- comments
285-
- stdErrorHandling
286-
- commonFalsePositives
285+
- std-error-handling
286+
- common-false-positives
287287
- legacy
288288

289289
# Excluding configuration per-path, per-linter, per-text and per-source.

.golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ linters:
5656
exclusions:
5757
presets:
5858
- comments
59-
- stdErrorHandling
60-
- commonFalsePositives
59+
- std-error-handling
60+
- common-false-positives
6161
- legacy
6262
paths:
6363
- test/testdata_etc # test files

assets/exclusion-presets.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4265,8 +4265,8 @@
42654265
"items": {
42664266
"enum": [
42674267
"comments",
4268-
"stdErrorHandling",
4269-
"commonFalsePositives",
4268+
"std-error-handling",
4269+
"common-false-positives",
42704270
"legacy"
42714271
]
42724272
}

pkg/config/linters_exclusions.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const (
1313

1414
const (
1515
ExclusionPresetComments = "comments"
16-
ExclusionPresetStdErrorHandling = "stdErrorHandling"
17-
ExclusionPresetCommonFalsePositives = "commonFalsePositives"
16+
ExclusionPresetStdErrorHandling = "std-error-handling"
17+
ExclusionPresetCommonFalsePositives = "common-false-positives"
1818
ExclusionPresetLegacy = "legacy"
1919
)
2020

test/run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func TestUnsafeOk(t *testing.T) {
353353
linters:
354354
exclusions:
355355
presets:
356-
- commonFalsePositives
356+
- common-false-positives
357357
`
358358

359359
testshared.NewRunnerBuilder(t).

test/testdata/configs/default_exclude.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ version: "2"
33
linters:
44
exclusions:
55
presets:
6-
- stdErrorHandling
7-
- commonFalsePositives
6+
- std-error-handling
7+
- common-false-positives
88
- legacy

0 commit comments

Comments
 (0)