Skip to content

Commit

Permalink
update golangcilint
Browse files Browse the repository at this point in the history
  • Loading branch information
danicc097 committed Jan 25, 2025
1 parent f1832ff commit d49aa6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# https://github.com/MarioCarrion/todo-api-microservice-example/blob/main/.golangci.yml
run:
skip-files: # ignore yaml error...
- ".*\\.xo\\.go$"
- ".*\\.gen\\.go$"
- ".*\\.pb\\.go$"
# yaml-language-server: $schema=https://raw.githubusercontent.com/golangci/golangci-lint/refs/tags/v1.63.4/jsonschema/golangci.jsonschema.json

linters:
enable-all: true
disable:
Expand Down Expand Up @@ -65,7 +62,6 @@ linters-settings:
json: goCamel
yaml: goCamel
staticcheck:
go: "1.22"
checks:
- "all"
gci:
Expand Down Expand Up @@ -117,6 +113,10 @@ linters-settings:
ignorePackageGlobs:
- github.com/danicc097/openapi-go-gin-postgres-sqlc/*
issues:
exclude-files:
- ".*\\.xo\\.go$"
- ".*\\.gen\\.go$"
- ".*\\.pb\\.go$"
exclude-rules:
- path: "internal/testutil/*" # doesn't work with internal/... for some reason
linters:
Expand Down
2 changes: 1 addition & 1 deletion bin/project
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ x.install-tools() {
commands=(
"go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/[email protected]"
"go install github.com/sqlc-dev/sqlc/cmd/[email protected]"
"go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2"
"go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4"
"go install github.com/tufin/[email protected]"
"go install golang.org/x/tools/cmd/goimports@latest"
"go install mvdan.cc/gofumpt@latest"
Expand Down

0 comments on commit d49aa6e

Please sign in to comment.