Skip to content

Commit eca0fe5

Browse files
committed
chore: rename severity option
1 parent d9ea961 commit eca0fe5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: .golangci.next.reference.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4236,7 +4236,7 @@ severity:
42364236
# `@linter` can be used as severity value to keep the severity from linters (e.g. revive, gosec, ...)
42374237
#
42384238
# Default: ""
4239-
default-severity: error
4239+
default: error
42404240

42414241
# If set to true `severity-rules` regular expressions become case-sensitive.
42424242
# Default: false

Diff for: jsonschema/golangci.next.jsonschema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4417,7 +4417,7 @@
44174417
"type": "object",
44184418
"additionalProperties": false,
44194419
"properties": {
4420-
"default-severity": {
4420+
"default": {
44214421
"description": "Set the default severity for issues. If severity rules are defined and the issues do not match or no severity is provided to the rule this will be the default severity applied. Severities should match the supported severity names of the selected out format.",
44224422
"type": "string",
44234423
"default": ""
@@ -4468,7 +4468,7 @@
44684468
"default": []
44694469
}
44704470
},
4471-
"required": ["default-severity"]
4471+
"required": ["default"]
44724472
}
44734473
}
44744474
}

Diff for: pkg/config/severity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
const severityRuleMinConditionsCount = 1
99

1010
type Severity struct {
11-
Default string `mapstructure:"default-severity"`
11+
Default string `mapstructure:"default"`
1212
CaseSensitive bool `mapstructure:"case-sensitive"`
1313
Rules []SeverityRule `mapstructure:"rules"`
1414
}

0 commit comments

Comments
 (0)