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
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
uses: golangci/golangci-lint-action@v7
with:
version: latest
version: v2.1
args: -c .golangci.yml
37 changes: 25 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
version: "2"
run:
timeout: 1m
skip-dirs:
- data
formatters:
enable:
- gofmt
- goimports
linters:
default: none
exclusions:
generated: lax
paths:
- data
- search/align/matrix/matrix_test.go
- seqhash/seqhash.go
rules:
- path: search/align/example_test.go
linters:
- nolintlint
enable:
- bodyclose
- dupl
- exportloopref
- copyloopvar
- gochecknoinits
# - goconst # TODO: Enable this and fix the errors.
- gofmt
- goimports
- goprintffuncname
- misspell
- nakedret
- nilnil
- noctx
- nolintlint
- stylecheck
- staticcheck
- unconvert
- unparam
linters-settings:
stylecheck:
# https://staticcheck.io/docs/options#checks
checks:
- "all"
- "-ST1005" # Disable "Incorrectly formatted error string" errors. TODO: Enable this and fix the errors.
settings:
dupl:
threshold: 500
staticcheck:
checks:
- "ST*"
- "-ST1005"
Loading