Skip to content

Commit f4da8a4

Browse files
skitttpantelis
authored andcommitted
Enable errchkjson checks
These are disabled by default, even when the linter itself is enabled. This enables them and configures errcheck appropriately (json.Marshal and json.MarshalIndent are checked by errchkjson and shouldn't be checked by errcheck). Signed-off-by: Stephen Kitt <[email protected]>
1 parent 34275a3 commit f4da8a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ version: "2"
33
linters:
44
default: none
55
settings:
6+
errcheck:
7+
exclude-functions:
8+
- encoding/json.Marshal
9+
- encoding/json.MarshalIndent
10+
errchkjson:
11+
check-error-free-encoding: true
12+
report-no-exported: true
613
gocritic:
714
disabled-checks:
815
- ifElseChain

0 commit comments

Comments
 (0)