Skip to content

Commit f249dd0

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/mgechev/revive from 1.1.2 to 1.1.3 (golangci#2517)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 7c3e466 commit f249dd0

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.golangci.example.yml

+13
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,19 @@ linters-settings:
13001300
- name: waitgroup-by-value
13011301
severity: warning
13021302
disable: false
1303+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#time-equal
1304+
- name: time-equal
1305+
severity: warning
1306+
disable: false
1307+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#banned-characters
1308+
- name: banned-characters
1309+
severity: warning
1310+
disable: false
1311+
arguments: ["Ω","Σ","σ"]
1312+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#optimize-operands-order
1313+
- name: optimize-operands-order
1314+
severity: warning
1315+
disable: false
13031316

13041317
rowserrcheck:
13051318
packages:

go.mod

+1-1
Original file line numberDiff line numberDiff 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

go.sum

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/revive.go

+3
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)