Skip to content

Commit

Permalink
Align local lint with GitHub Actions lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JenswBE committed Feb 10, 2024
1 parent 844546b commit 8236454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- name: Lint service
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: >-
--timeout=5m
--disable goerr113
Expand Down
4 changes: 4 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This script is intended to be sourced like "source lint.sh" or ". lint.sh".
golangci-lint run \
--config <(curl --silent https://raw.githubusercontent.com/JenswBE/setup/main/programming_configs/golang/.golangci.yml) \
--disable goerr113

0 comments on commit 8236454

Please sign in to comment.