2020-09-10 01:28:59 -05:00
|
|
|
linters:
|
|
|
|
enable:
|
2020-09-10 02:30:25 -05:00
|
|
|
- dogsled
|
|
|
|
- dupl
|
2020-09-10 01:28:59 -05:00
|
|
|
- goimports
|
2020-09-10 02:30:25 -05:00
|
|
|
- gosec
|
2020-09-10 01:28:59 -05:00
|
|
|
- misspell
|
2020-09-10 02:30:25 -05:00
|
|
|
- nakedret
|
|
|
|
- stylecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
2020-09-10 01:28:59 -05:00
|
|
|
- whitespace
|
2020-09-10 02:30:25 -05:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2022-01-22 13:29:05 -05:00
|
|
|
# Some cache implementations use md5 hashes for cached filenames. There is
|
2020-09-10 02:30:25 -05:00
|
|
|
# a slight risk of cache poisoning if an attacker could construct a URL
|
2022-01-22 13:29:05 -05:00
|
|
|
# with the same hash, but the URL would also need to be allowed by the
|
|
|
|
# proxy's security settings (host allowlist, URL signature, etc). Changing
|
|
|
|
# these to a more secure hash algorithm would result in 100% cache misses
|
|
|
|
# when users upgrade. For now, just leave these alone.
|
2020-09-10 02:30:25 -05:00
|
|
|
- path: internal/.*cache
|
|
|
|
linters: gosec
|
|
|
|
text: G(401|501)
|