diff --git a/.golangci.yml b/.golangci.yml index 32db9fe..3bc2c1c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -95,6 +95,15 @@ linters: recommendations: - github.com/aymanbagabas/go-udiff reason: "Unmaintained fork; use go-udiff." + exclusions: + rules: + # homoicon keeps a local copy of the JavaScript engine (sneak's decision, + # https://git.eeqj.de/sneak/homoicon/issues/1759#issuecomment-153261). + # Excluded, as gomoddirectives' replace-allow-list skips local paths. + - path: ^go\.mod$ + linters: + - gomoddirectives + text: '^local replacement are not allowed: github\.com/grafana/sobek$' issues: max-issues-per-linter: 0