Skip to content

Commit

Permalink
all: Fix golang-ci-lint action (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Dec 1, 2024
1 parent c5b5e0e commit aebf7b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config: .golangci.yml
version: v1.55.2
version: v1.62.2
15 changes: 6 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ linters-settings:
- unnamedResult # it is experimental currently and doesn't handle typed channels correctly
gocyclo:
min-complexity: 14 # TODO go lower
golint:
min-confidence: 0
govet:
check-shadowing: true
enable:
- shadow
goconst:
min-len: 2
min-occurrences: 3
goimports:
local-prefixes: gitlab.skypicker.com/search-team/gonuts/conveyance-store
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US

Expand All @@ -50,6 +47,8 @@ linters:
- interfacer

issues:
exclude-dirs:
- "fixtures"
exclude-rules:
- path: _test\.go
linters:
Expand All @@ -60,13 +59,11 @@ issues:
run:
modules-download-mode: readonly

skip-dirs:
- "fixtures"

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: tab
formats:
- format: tab

# print lines of code with issue, default is true
print-issued-lines: true
Expand Down

0 comments on commit aebf7b7

Please sign in to comment.