Skip to content

Commit fa80caa

Browse files
bigbesoleg-jukovec
authored andcommitted
ci: pin golangci-lint version and unlimit issue output
Pin golangci-lint to v2.11.4 via a top-level GOLANGCI_LINT_VERSION env var so the version is bumped in one place. Disable per-linter and same-issue printing limits in .golangci.yml so all findings are visible.
1 parent 0330fae commit fa80caa

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
GOLANGCI_LINT_VERSION: v2.11.4
9+
710
jobs:
811
luacheck:
912
runs-on: ubuntu-24.04
@@ -45,6 +48,7 @@ jobs:
4548
- name: golangci-lint
4649
uses: golangci/golangci-lint-action@v9
4750
with:
51+
version: ${{ env.GOLANGCI_LINT_VERSION }}
4852
args: --config=.golangci.yml
4953

5054
codespell:

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: "2"
22

3+
issues:
4+
# Disable limits on the number of printed issues.
5+
max-issues-per-linter: 0 # 0 = no limit.
6+
max-same-issues: 0 # 0 = no limit.
7+
38
formatters:
49
enable:
510
- goimports

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ format:
3636

3737
.PHONY: golangci-lint
3838
golangci-lint:
39-
golangci-lint run --max-same-issues 0 --max-issues-per-linter 100
39+
golangci-lint run ./...
4040

4141
.PHONY: test
4242
test:

0 commit comments

Comments
 (0)