Debian Codegraph @

.golangci.yml

raw symbols SCIP
1 version: "2"
2 linters:
3 enable:
4 - copyloopvar
5 - goconst
6 - gocyclo
7 - gosec
8 - misspell
9 - nolintlint
10 - prealloc
11 - revive
12 - unconvert
13 - unparam
14 settings:
15 gocyclo:
16 min-complexity: 90 # Allow very high complexity for crypto functions and test utilities
17 gosec:
18 excludes:
19 - G401 # Allow weak crypto algorithms as this is a crypto library
20 - G501 # Allow import of blacklisted crypto/md5
21 - G505 # Allow import of blacklisted crypto/sha1
22 - G502 # Allow import of blacklisted crypto/des
23 - G405 # Allow use of weak cryptographic primitive
24 - G306 # Allow WriteFile permissions for test files
25 - G204 # Allow subprocess launches in tests (OpenSSL integration)
26 - G115 # Allow integer overflow conversion
27 revive:
28 rules:
29 - name: exported
30 disabled: true # Disable exported rule for crypto library
31 staticcheck:
32 checks:
33 - all
34 exclusions:
35 generated: lax
36 presets:
37 - comments
38 - common-false-positives
39 - legacy
40 - std-error-handling
41 rules:
42 # Allow specific deprecated crypto algorithms that are needed for PKCS#7 compatibility
43 - linters:
44 - staticcheck
45 text: SA1019.*crypto/dsa.*has been deprecated
46 - linters:
47 - staticcheck
48 text: SA1019.*crypto/sha1.*is deprecated
49 - linters:
50 - staticcheck
51 text: SA1019.*crypto/md5.*is deprecated
52 paths:
53 - third_party$
54 - builtin$
55 - examples$
56 formatters:
57 enable:
58 - gofmt
59 - gofumpt
60 - goimports
61 exclusions:
62 generated: lax
63 paths:
64 - third_party$
65 - builtin$
66 - examples$