File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -1275,6 +1275,19 @@ linters-settings:
12751275 - name : waitgroup-by-value
12761276 severity : warning
12771277 disable : false
1278+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#time-equal
1279+ - name : time-equal
1280+ severity : warning
1281+ disable : false
1282+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#banned-characters
1283+ - name : banned-characters
1284+ severity : warning
1285+ disable : false
1286+ arguments : ["Ω","Σ","σ"]
1287+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#optimize-operands-order
1288+ - name : optimize-operands-order
1289+ severity : warning
1290+ disable : false
12781291
12791292 rowserrcheck :
12801293 packages :
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ require (
5555 github.com/mattn/go-colorable v0.1.12
5656 github.com/mbilski/exhaustivestruct v1.2.0
5757 github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517
58- github.com/mgechev/revive v1.1.2
58+ github.com/mgechev/revive v1.1.3
5959 github.com/mitchellh/go-homedir v1.1.0
6060 github.com/mitchellh/go-ps v1.0.0
6161 github.com/moricho/tparallel v0.2.1
Original file line number Diff line number Diff line change @@ -305,6 +305,9 @@ var allRules = append([]lint.Rule{
305305 & rule.NestedStructs {},
306306 & rule.IfReturnRule {},
307307 & rule.UselessBreak {},
308+ & rule.TimeEqualRule {},
309+ & rule.BannedCharsRule {},
310+ & rule.OptimizeOperandsOrderRule {},
308311}, defaultRules ... )
309312
310313// This element is not exported by revive, so we need copy the code.
You can’t perform that action at this time.
0 commit comments