Skip to content

Commit f03425e

Browse files
mdryaanurunc-bot[bot]
authored andcommitted
chore(lint): add revive error-strings rule with confidence threshold
PR: #707 Signed-off-by: Md Raiyan <alikhurshid842001@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
1 parent eb765ea commit f03425e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ linters:
2424
staticcheck:
2525
checks:
2626
- all
27+
revive:
28+
confidence: 0.6
29+
rules:
30+
- name: error-strings
2731
exclusions:
2832
generated: lax
2933
presets:
@@ -39,6 +43,14 @@ linters:
3943
text: "dot-imports"
4044
linters:
4145
- revive
46+
- path: _test\.go
47+
text: "error-strings"
48+
linters:
49+
- revive
50+
- path: tests/e2e/
51+
text: "error-strings"
52+
linters:
53+
- revive
4254
paths:
4355
- docs$
4456
- dist$

0 commit comments

Comments
 (0)