Skip to content

Commit

Permalink
chore: add golangci-lint config file for flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 8, 2023
1 parent dfce853 commit 1630a90
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --enable=nolintlint,gochecknoinits,bodyclose,gofumpt,gocritic --verbose
version: v1.55.2
args: --verbose
29 changes: 29 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file contains configuration options for golangci-lint.
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml

run:
# Timeout for analysis.
timeout: 5m

linters:
# Disable all linters to prevent appearing new issues on golangci-lint update.
disable-all: true
enable:
- bodyclose
- errcheck
- gochecknoinits
- gocritic
- gofumpt
- gosimple
- govet
- ineffassign
- nolintlint
- staticcheck
- unused

linters-settings:
# Show all issues from a linter.
max-issues-per-linter: 0

# Show all issues with the same text.
max-same-issues: 0

0 comments on commit 1630a90

Please sign in to comment.