File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,19 @@ MinAlertLevel = suggestion
4
4
5
5
Packages = RedHat
6
6
7
+ [*]
8
+ BasedOnStyles = Vale
9
+ Vale.Spelling = NO
10
+
7
11
[*.md]
8
12
BasedOnStyles = Vale, RedHat
13
+
14
+ # Overload everything that Redhat could report as errors
15
+ RedHat.Abbreviations = warning # decrease from error to warning
16
+ RedHat.CaseSensitiveTerms = warning # decrease from error to warning
17
+ RedHat.Spacing = warning # decrease from error to warning
18
+ RedHat.TermsErrors = warning # decrease from error to warning
19
+
20
+ RedHat.Headings = NO # disable errors on headings
21
+ RedHat.PassiveVoice = NO # disable passive voice reporting
22
+ RedHat.Spelling = NO # spelling errors are not reported
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-
37
37
Blank import should be only in a main or test package, or have a comment justifying it.
38
38
39
39
#### context-as-argument
40
- context.Context() should be the first parameter of a function when provided as argument.
40
+ ` context.Context() ` should be the first parameter of a function when provided as argument.
41
41
42
42
#### context-keys-type
43
43
Basic types should not be used as a key in ` context.WithValue `
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
37
37
check imports order and makes it always deterministic.
38
38
39
39
### thelper
40
- make sure to use t.Helper() when needed
40
+ make sure to use ` t.Helper() ` when needed
41
41
42
42
### mirror
43
43
mirror suggests rewrites to avoid unnecessary [ ] byte/string conversion
@@ -59,7 +59,7 @@ Checks for duplicate words in the source code.
59
59
Blank import should be only in a main or test package, or have a comment justifying it.
60
60
61
61
#### context-as-argument
62
- context.Context() should be the first parameter of a function when provided as argument.
62
+ ` context.Context() ` should be the first parameter of a function when provided as argument.
63
63
64
64
#### context-keys-type
65
65
Basic types should not be used as a key in ` context.WithValue `
You can’t perform that action at this time.
0 commit comments