File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1612,6 +1612,12 @@ linters-settings:
1612
1612
arguments :
1613
1613
- mypragma
1614
1614
- otherpragma
1615
+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#comments-density
1616
+ - name : comments-density
1617
+ severity : warning
1618
+ disabled : false
1619
+ exclude : [""]
1620
+ arguments : [ 15 ]
1615
1621
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming
1616
1622
- name : confusing-naming
1617
1623
severity : warning
Original file line number Diff line number Diff line change 217
217
" call-to-gc" ,
218
218
" cognitive-complexity" ,
219
219
" comment-spacings" ,
220
+ " comments-density" ,
220
221
" confusing-naming" ,
221
222
" confusing-results" ,
222
223
" constant-logical-expr" ,
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ func safeTomlSlice(r []any) []any {
275
275
}
276
276
277
277
// This element is not exported by revive, so we need copy the code.
278
- // Extracted from https://github.com/mgechev/revive/blob/v1.3.7 /config/config.go#L15
278
+ // Extracted from https://github.com/mgechev/revive/blob/v1.3.9 /config/config.go#L15
279
279
var defaultRules = []lint.Rule {
280
280
& rule.VarDeclarationsRule {},
281
281
& rule.PackageCommentsRule {},
@@ -358,6 +358,7 @@ var allRules = append([]lint.Rule{
358
358
& rule.EnforceRepeatedArgTypeStyleRule {},
359
359
& rule.EnforceSliceStyleRule {},
360
360
& rule.MaxControlNestingRule {},
361
+ & rule.CommentsDensityRule {},
361
362
}, defaultRules ... )
362
363
363
364
const defaultConfidence = 0.8
You can’t perform that action at this time.
0 commit comments