-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
58 lines (48 loc) · 1.4 KB
/
Copy path.golangci.yml
File metadata and controls
58 lines (48 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# golangci-lint configuration for md2pdf
# https://golangci-lint.run/usage/configuration/
run:
timeout: 5m
tests: true
linters:
enable:
- errcheck # check for unchecked errors
- gosimple # simplification suggestions
- govet # go vet checks
- ineffassign # detect ineffectual assignments
- staticcheck # comprehensive static analysis
- unused # detect unused code
- gofmt # formatting
- goimports # import ordering
- misspell # catch common English misspellings
- godot # check GoDoc comment endings
- gosec # security checks
- noctx # detect http.Request without context
- wrapcheck # ensure errors are wrapped when returned across packages
- exhaustive # check exhaustiveness of enum switch statements
linters-settings:
gofmt:
simplify: true
govet:
enable-all: true
misspell:
locale: US
godot:
scope: declarations
capital: true
gosec:
excludes:
- G204 # subprocess launched with variable — intentional for mmdc/python
wrapcheck:
ignorePackageGlobs:
- encoding/*
- github.com/135yshr/md2pdf/*
issues:
exclude-rules:
# Test files have relaxed rules.
- path: _test\.go
linters:
- wrapcheck
- gosec
- errcheck
max-issues-per-linter: 0
max-same-issues: 0