Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.24
go-version: 1.25
- uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
with:
args: --timeout 3m --verbose --disable revive
version: v1.64.5
version: v2.4.0
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
&& sudo cp conftest /usr/local/bin/conftest
- uses: actions/setup-go@v3
with:
go-version: 1.24
go-version: 1.25
- uses: actions/checkout@v3
- run: make test-all
67 changes: 37 additions & 30 deletions .golangci.yml
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were produced by running golangci-lint migrate. See https://golangci-lint.run/docs/product/migration-guide/#command-migrate for details

Original file line number Diff line number Diff line change
@@ -1,38 +1,45 @@
version: "2"
linters:
enable:
- errcheck
- dogsled
- dupword
- gochecknoinits
# We don't use goconst because it gives false positives in the tests.
# - goconst
- gofmt
# We don't use revive because it gives false positives in the tests.
# - revive
- gosec
- gosimple
- ineffassign
- staticcheck
- typecheck
- interfacebloat
- unconvert
- unused
- vet
- vetshadow
- dogsled
- dupword
- unparam
- interfacebloat
- usestdlibvars
- whitespace
issues:
exclude-rules:
- path: server/legacy/controllers/events/events_controller(.+)test.go
linters:
- dogsled
- path: server/legacy/events/event_parser_test.go
linters:
- dogsled
- path: server/legacy/events/command_runner_test.go
linters:
- dogsled
linters-settings:
interfacebloat:
max: 7
settings:
interfacebloat:
max: 7
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dogsled
path: server/legacy/controllers/events/events_controller(.+)test.go
- linters:
- dogsled
path: server/legacy/events/event_parser_test.go
- linters:
- dogsled
path: server/legacy/events/command_runner_test.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/runatlantis/atlantis

go 1.24
go 1.25

replace google.golang.org/grpc => google.golang.org/grpc v1.45.0

Expand Down
Loading