Skip to content

Commit

Permalink
ci(github-actions): add a config file for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Aug 14, 2023
1 parent bf78413 commit 869d3ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ jobs:
with:
go-version: '1.20'
cache: false
# Runs the default linters provided by golangci-lint plus golint and godot.
- name: Run linters
uses: golangci/golangci-lint-action@v3
with:
version: v1.52
args: --enable=golint --enable=godot --timeout=3m
version: v1.53
15 changes: 15 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Options for analysis running.
run:
timeout: 5m
skip-dirs:
- .git
linters:
enable:
- revive
- godot
linters-settings:
revive:
rules:
- name: blank-imports
severity: warning
disabled: true

0 comments on commit 869d3ae

Please sign in to comment.