aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorgoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2026-02-18 05:03:24 +0000
committergoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2026-02-18 05:03:24 +0000
commitbac73556c98fb94d5c790c211b7e535f878ca85a (patch)
tree269cf49584a5f54daad083398a616aba724ed7b2 /.golangci.yml
parent519e1baed7b85bba88ef5a111f02602b932cff8b (diff)
downloadneko-bac73556c98fb94d5c790c211b7e535f878ca85a.tar.gz
neko-bac73556c98fb94d5c790c211b7e535f878ca85a.tar.bz2
neko-bac73556c98fb94d5c790c211b7e535f878ca85a.zip
Fix unbounded memory usage in crawler (DoS)
Co-authored-by: adammathes <868470+adammathes@users.noreply.github.com>
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml17
1 files changed, 8 insertions, 9 deletions
diff --git a/.golangci.yml b/.golangci.yml
index cca0900..6cb17b1 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,22 +4,21 @@ run:
timeout: 5m
linters:
- default: none
+ disable-all: true
+ disable:
+ - errcheck
enable:
- staticcheck
- govet
- ineffassign
- unparam
- misspell
- # If errcheck is enabled, exclude it for test files.
- # But since it's disabled globally, this rule is harmless but potentially unused.
- # The original config had it, so we keep it under the new location.
- exclusions:
- rules:
- - path: .*_test\.go
- linters:
- - errcheck
issues:
+ exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
+ exclude-rules:
+ - path: .*_test\.go
+ linters:
+ - errcheck