Skip to content

Commit

Permalink
Bump golangci-lint and add configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed Jun 2, 2022
1 parent ddaa77a commit 5ced1f4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.43.0
version: v1.46.2
23 changes: 23 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
run:
timeout: 3m

linters:
enable:
- revive
- ineffassign
- misspell
- goimports

severity:
default-severity: error

linters-settings:
misspell:
ignore-words:
- strat
revive:
severity: error
rules:
- name: exported
- name: if-return
disabled: true

0 comments on commit 5ced1f4

Please sign in to comment.