Skip to content

Commit a60c8ee

Browse files
- Linter config changes.
1 parent 7d74781 commit a60c8ee

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
- build*
1010
pull_request:
1111

12+
13+
env:
14+
GOLANGCI_LINT_VERSION: ${{ vars.GOLANGCI_LINT_VERSION == '' && 'v1.59.1' || vars.GOLANGCI_LINT_VERSION }}
15+
DEFAULT_STEP_TIMEOUT: ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && '20' || vars.DEFAULT_STEP_TIMEOUT_MIN }}
16+
1217
jobs:
1318
lint:
1419
runs-on: ubuntu-latest
@@ -31,4 +36,5 @@ jobs:
3136
- name: Run golangci-lint
3237
uses: golangci/[email protected]
3338
with:
34-
version: 'v1.59.1'
39+
version: ${{ env.GOLANGCI_LINT_VERSION }}
40+
args: --timeout $${{ env.DEFAULT_STEP_TIMEOUT }}m

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,7 @@ issues:
318318
- gosec
319319
- noctx
320320
- revive
321-
- wrapcheck
321+
- wrapcheck
322+
output:
323+
formats:
324+
- format: colored-line-number

0 commit comments

Comments
 (0)