From b972c44207a23de36a08ae336d8c4f5e58a0b810 Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 9 Jun 2026 16:42:47 -0700 Subject: [PATCH 1/5] updated ci linter. --- .golangci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index fb6921ba..973e76ac 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,28 +1,31 @@ +version: "2" run: timeout: 1m - skip-dirs: +issues: + exclude-dirs: - data +formatters: + enable: + - gofmt + - goimports linters: 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 + staticcheck: checks: - "all" - - "-ST1005" # Disable "Incorrectly formatted error string" errors. TODO: Enable this and fix the errors. \ No newline at end of file + - "-ST1005" \ No newline at end of file From cc8e135febed89fda7f5b7371dd5d40d3188eb58 Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 9 Jun 2026 16:50:17 -0700 Subject: [PATCH 2/5] chore: update lint.yml workflow --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 11760c0d..f4f90d22 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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@v6 with: - version: latest + version: v2.1 args: -c .golangci.yml From cf79dea1409824bed396b9d2cf6e687a87d2613a Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 9 Jun 2026 17:02:04 -0700 Subject: [PATCH 3/5] bumped linter version. --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f4f90d22..53525945 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v7 with: version: v2.1 args: -c .golangci.yml From 377b59a3ab6e2d27c86ba996acacbcd4250e27cd Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 9 Jun 2026 17:19:03 -0700 Subject: [PATCH 4/5] updated config syntax --- .golangci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 973e76ac..905e28d7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,14 +1,14 @@ version: "2" run: timeout: 1m -issues: - exclude-dirs: - - data formatters: enable: - gofmt - goimports linters: + exclusions: + paths: + - data enable: - bodyclose - dupl @@ -24,8 +24,8 @@ linters: - staticcheck - unconvert - unparam -linters-settings: - staticcheck: - checks: - - "all" - - "-ST1005" \ No newline at end of file + settings: + staticcheck: + checks: + - "all" + - "-ST1005" \ No newline at end of file From cf790e7d51c5fb88aad6386112b97f9dd20348f1 Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 9 Jun 2026 17:51:47 -0700 Subject: [PATCH 5/5] excluded rules from certain files. --- .golangci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 905e28d7..3f666979 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,9 +6,17 @@ formatters: - 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 @@ -25,7 +33,9 @@ linters: - unconvert - unparam settings: + dupl: + threshold: 500 staticcheck: checks: - - "all" + - "ST*" - "-ST1005" \ No newline at end of file