Skip to content

Commit b5ff568

Browse files
committed
fix vale issue by tuning vale rules
1 parent e4add3e commit b5ff568

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.vale.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,19 @@ MinAlertLevel = suggestion
44

55
Packages = RedHat
66

7+
[*]
8+
BasedOnStyles = Vale
9+
Vale.Spelling = NO
10+
711
[*.md]
812
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

02-basic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-
3737
Blank import should be only in a main or test package, or have a comment justifying it.
3838

3939
#### 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.
4141

4242
#### context-keys-type
4343
Basic types should not be used as a key in `context.WithValue`

03-safe/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
3737
check imports order and makes it always deterministic.
3838

3939
### thelper
40-
make sure to use t.Helper() when needed
40+
make sure to use `t.Helper()` when needed
4141

4242
### mirror
4343
mirror suggests rewrites to avoid unnecessary []byte/string conversion
@@ -59,7 +59,7 @@ Checks for duplicate words in the source code.
5959
Blank import should be only in a main or test package, or have a comment justifying it.
6060

6161
#### 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.
6363

6464
#### context-keys-type
6565
Basic types should not be used as a key in `context.WithValue`

0 commit comments

Comments
 (0)