File tree 2 files changed +21
-8
lines changed 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -1058,16 +1058,29 @@ linters-settings:
1058
1058
1059
1059
revive :
1060
1060
# Maximum number of open files at the same time.
1061
- # https://github.com/mgechev/revive#command-line-flags
1061
+ # See https://github.com/mgechev/revive#command-line-flags
1062
1062
# Defaults to unlimited.
1063
1063
max-open-files : 2048
1064
+
1065
+ # When set to false, ignores files with "GENERATED" header, similar to golint.
1064
1066
# See https://github.com/mgechev/revive#available-rules for details.
1067
+ # Default: false
1065
1068
ignore-generated-header : true
1066
- severity : warning
1067
- enable-all-rules : false
1068
- # confidence: 0.8
1069
- # error-code: 0
1070
- # warning-code: 0
1069
+
1070
+ # Sets the default severity.
1071
+ # See https://github.com/mgechev/revive#configuration
1072
+ # Default: warning
1073
+ severity : error
1074
+
1075
+ # Enable all available rules.
1076
+ # Default: false
1077
+ enable-all-rules : true
1078
+
1079
+ # Sets the default failure confidence.
1080
+ # This means that linting errors with less than 0.8 confidence will be ignored.
1081
+ # Default: 0.8
1082
+ confidence : 0.1
1083
+
1071
1084
rules :
1072
1085
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#add-constant
1073
1086
- name : add-constant
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ To see a list of supported linters and which linters are enabled/disabled:
8
8
golangci-lint help linters
9
9
```
10
10
11
- ## Enabled By Default Linters
11
+ ## Enabled by Default
12
12
13
13
{ .EnabledByDefaultLinters }
14
14
15
- ## Disabled By Default Linters ( ` -E/--enable ` )
15
+ ## Disabled by Default
16
16
17
17
{ .DisabledByDefaultLinters }
18
18
You can’t perform that action at this time.
0 commit comments