mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-09 03:52:40 +02:00
add more golangci-lint checks
This commit is contained in:
parent
80c7cb29a6
commit
067500cd7d
2 changed files with 20 additions and 2 deletions
|
|
@ -1,6 +1,24 @@
|
|||
linters:
|
||||
enable:
|
||||
- dogsled
|
||||
- dupl
|
||||
- goimports
|
||||
- stylecheck
|
||||
- gosec
|
||||
- misspell
|
||||
- nakedret
|
||||
- stylecheck
|
||||
- unconvert
|
||||
- unparam
|
||||
- whitespace
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
# Some cache implementations use md5 hashes for cached filenames. There is
|
||||
# a slight risk of cache poisoning if an attacker could construct a URL
|
||||
# with the same hash, but it would also need to be allowed by the proxies
|
||||
# security settings. Changing these to a more secure hash algorithm would
|
||||
# result in 100% cache misses when users upgrade. For now, just leave these
|
||||
# alone.
|
||||
- path: internal/.*cache
|
||||
linters: gosec
|
||||
text: G(401|501)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue