Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: make test-coverage

- name: Run linter
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
with:
version: v1.64.8
only-new-issues: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ scratch/

# Claude Code
.claude/
**/CLAUDE.md
17 changes: 7 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@
run:
timeout: 5m
tests: true
skip-dirs:
- vendor
- protos/block # Generated protobuf code
skip-files:
- ".*\\.pb\\.go$" # Skip generated protobuf files

linters-settings:
errcheck:
check-type-assertions: true
check-blank: true

govet:
check-shadowing: true
enable-all: true

gofmt:
Expand Down Expand Up @@ -62,8 +56,6 @@ linters-settings:
stylecheck:
checks: ["all", "-ST1003"] # Disable underscores in names (we use them for test mocks)

unused:
check-exported: false

linters:
disable-all: true
Expand Down Expand Up @@ -99,6 +91,11 @@ linters:
- whitespace

issues:
exclude-dirs:
- vendor
- protos/block # Generated protobuf code
exclude-files:
- ".*\\.pb\\.go$" # Skip generated protobuf files
exclude-rules:
# Exclude some linters from running on tests files
- path: _test\.go
Expand Down Expand Up @@ -133,8 +130,8 @@ issues:
new: false

output:
format: colored-line-number
formats:
- format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
sort-results: true
Loading