Skip to content

Commit

Permalink
feat: add new rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 7, 2022
1 parent 4ef629a commit 50495be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.reference.yml
Expand Up @@ -1316,6 +1316,10 @@ linters-settings:
severity: warning
disabled: false
arguments: [ 3 ]
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#datarace
- name: datarace
severity: warning
disabled: false
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#deep-exit
- name: deep-exit
severity: warning
Expand Down
1 change: 1 addition & 0 deletions pkg/golinters/revive.go
Expand Up @@ -321,6 +321,7 @@ var allRules = append([]lint.Rule{
&rule.TimeEqualRule{},
&rule.BannedCharsRule{},
&rule.OptimizeOperandsOrderRule{},
&rule.DataRaceRule{},
}, defaultRules...)

const defaultConfidence = 0.8
Expand Down

0 comments on commit 50495be

Please sign in to comment.