Skip to content

Golangci lint latest #3517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: v1.64
args: -v --exclude-dirs cf --exclude-dirs fixtures --exclude-dirs plugin --exclude-dirs command/plugin
version: v2.1
args: -v
format:
name: Run go fmt
runs-on: ubuntu-latest
Expand Down
37 changes: 29 additions & 8 deletions .golangci.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
{
"version": 2,
"run": {
"concurrency": 4,
"timeout": "20m"
},
"formaters": {
"default": "none",
"enable": [
"goimports"
],
"exclusions": {
"paths": [
"cf",
"fixtures",
"plugin",
"command/plugin",
"integration/helpers/fake_server.go",
"command/plugin/*.go$"
]
}
},
"linters": {
"disable-all": true,
"default": "none",
"enable": [
"govet",
"goimports",
"errcheck",
"staticcheck",
"unused",
"ineffassign"
]
],
"exclusions": {
"paths": [
"cf",
"fixtures",
"plugin",
"command/plugin",
"integration/helpers/fake_server.go",
"command/plugin/*.go$"
]
}
},
"linters-settings": {},
"issues": {
"max-same-issues": 0,
"exclude-files": [
"integration/helpers/fake_server.go",
"command/plugin/*.go$"
],
"exclude": [
"Error return value of `client.GetApplicationTasks` is not checked",
"Error return value of `logger.output.Stop` is not checked",
Expand Down
Loading