Skip to content

Commit

Permalink
chore(ci): set golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed May 23, 2024
1 parent b4aa724 commit 6d3d7dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ jobs:
with:
go-version: '1.21'
- uses: golangci/golangci-lint-action@v3
with:
version: v1.58.2
args: --timeout 3m --verbose
5 changes: 3 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ output:
# Example: "checkstyle:report.json,colored-line-number"
#
# Default: colored-line-number
format: github-actions
formats:
format: github-actions

linters-settings:
wrapcheck:
Expand Down Expand Up @@ -94,7 +95,6 @@ linters:
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exportloopref
- forbidigo
Expand Down Expand Up @@ -170,6 +170,7 @@ linters:
# - interfacer
# - maligned
# - scopelint
# - execinquery

# # Not useful
# - depguard
Expand Down
1 change: 1 addition & 0 deletions cmd/download_publishers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var downloadPublishersCmd = &cobra.Command{
if err != nil {
log.Fatalf("error in reading %s: %v", args[1], err)
}
//nolint:musttag // false positive
_ = yaml.Unmarshal(data, &publishers)
}

Expand Down

0 comments on commit 6d3d7dd

Please sign in to comment.