Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
timeout_minutes: "60"
allowed_tools: "Bash(golangci-lint run --verbose)"
7 changes: 4 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
go-version: "1.24"
cache: false
- uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v7
uses: golangci/golangci-lint-action@v8
with:
version: v2.0.2
args: --timeout 5m --verbose
version: "v2.1.0"
args: --timeout 10m --verbose
59 changes: 35 additions & 24 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
version: "2"
formatters:
enable:
- gofmt
- gci
settings:
gci:
sections:
- standard
- default
- prefix(github.com/sgnl-ai)
- localmodule
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

linters:
default: none
enable:
Expand All @@ -9,6 +27,7 @@ linters:
- durationcheck
- forcetypeassert
- goconst
- gocritic
- godot
- goheader
- ineffassign
Expand All @@ -22,44 +41,36 @@ linters:
- predeclared
- promlinter
- reassign
- revive
# TODO Enable staticcheck
# - staticcheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- wsl
settings:
goheader:
values:
const:
COMPANY: SGNL.ai, Inc.
template: Copyright {{ YEAR }} {{ COMPANY }}
nestif:
min-complexity: 10
exclusions:
generated: lax
rules:
- path: (.+)_test.go
linters:
- dupl
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
path: (.+)_test.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
settings:
nestif:
min-complexity: 10
gocritic:
disable-all: true
enabled-checks:
- dupImport
goheader:
values:
const:
COMPANY: SGNL.ai, Inc.
template: Copyright {{ YEAR }} {{ COMPANY }}
Loading