diff --git a/.golangci.yaml b/.golangci.yaml index d948928e8..30e8a7065 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,6 +5,7 @@ linters: # linters to run in addition to default ones enable: - dupl + - dupword - durationcheck - errname - errorlint @@ -12,6 +13,7 @@ linters: - forbidigo - forcetypeassert - gci + - gocheckcompilerdirectives - godot - gofmt - gosec @@ -23,6 +25,7 @@ linters: - tparallel - unconvert - unparam + - usestdlibvars - whitespace run: diff --git a/agentapi/generator_windows.go b/agentapi/generator_windows.go index 8e9044498..fcbd86848 100644 --- a/agentapi/generator_windows.go +++ b/agentapi/generator_windows.go @@ -3,4 +3,4 @@ package agentapi //go:generate wsl -- bash -c "source ~/.profile && ./generate.sh" -// Sourcing.profile because wsl --