chore: remove nilaway as golangci-lint github action doesn't support GCL

This commit is contained in:
Siyuan Miao 2025-09-05 11:36:21 +02:00
parent 82c5e6b38f
commit 66504163d5
2 changed files with 0 additions and 14 deletions

View File

@ -1,6 +0,0 @@
# This has to be >= v1.57.0 for module plugin system support.
version: v2.4.0
plugins:
- module: "go.uber.org/nilaway"
import: "go.uber.org/nilaway/cmd/gclplugin"
version: latest # Or a fixed version for reproducible builds.

View File

@ -5,8 +5,6 @@ linters:
- misspell - misspell
- whitespace - whitespace
- gochecknoinits - gochecknoinits
# Static analysis tool to detect potential nil panics in Go code.
- nilaway
# Checks function and package cyclomatic complexity. # Checks function and package cyclomatic complexity.
- cyclop - cyclop
# Check whether the function uses a non-inherited context. # Check whether the function uses a non-inherited context.
@ -20,12 +18,6 @@ linters:
msg: Do not commit print statements. Use logger package. msg: Do not commit print statements. Use logger package.
- pattern: ^log\.(Fatal|Panic|Print)(f|ln)?.*$ - pattern: ^log\.(Fatal|Panic|Print)(f|ln)?.*$
msg: Do not commit log statements. Use logger package. msg: Do not commit log statements. Use logger package.
custom:
nilaway:
type: module
description: 'Static analysis tool to detect potential nil panics in Go code.'
settings:
exclude-pkgs: vendor
exclusions: exclusions:
generated: lax generated: lax
presets: presets: