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 @@ -1033,16 +1033,29 @@ linters-settings:
1033
1033
1034
1034
revive :
1035
1035
# Maximum number of open files at the same time.
1036
- # https://github.com/mgechev/revive#command-line-flags
1036
+ # See https://github.com/mgechev/revive#command-line-flags
1037
1037
# Defaults to unlimited.
1038
1038
max-open-files : 2048
1039
+
1040
+ # When set to false, ignores files with "GENERATED" header, similar to golint.
1039
1041
# See https://github.com/mgechev/revive#available-rules for details.
1042
+ # Default: false
1040
1043
ignore-generated-header : true
1041
- severity : warning
1042
- enable-all-rules : false
1043
- # confidence: 0.8
1044
- # error-code: 0
1045
- # warning-code: 0
1044
+
1045
+ # Sets the default severity.
1046
+ # See https://github.com/mgechev/revive#configuration
1047
+ # Default: warning
1048
+ severity : error
1049
+
1050
+ # Enable all available rules.
1051
+ # Default: false
1052
+ enable-all-rules : true
1053
+
1054
+ # Sets the default failure confidence.
1055
+ # This means that linting errors with less than 0.8 confidence will be ignored.
1056
+ # Default: 0.8
1057
+ confidence : 0.1
1058
+
1046
1059
rules :
1047
1060
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#add-constant
1048
1061
- 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