-
Notifications
You must be signed in to change notification settings - Fork 7
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
golangci-lint #1319
Merged
Merged
golangci-lint #1319
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
645a84b
golangci-lint
ale8k d055093
test linter with err
ale8k 9020129
will this work?
ale8k 367dc2b
perhaps it is working?
ale8k c2d4e99
try a 5 min timeout with verbose...
ale8k 4c7b407
10m no critic
ale8k 515c535
try a bump
ale8k 28c48ff
wip
ale8k 732d082
reference field directly?
ale8k 4874526
tmate
ale8k 28f2065
bump jimm?
ale8k 1c1a844
approle
ale8k 3223bb1
.
ale8k edfa401
int overflows.
ale8k b8ffc22
rename
ale8k 765ce8e
extra newline
ale8k 3a22cf6
add linting to make
ale8k 0efb551
make target
ale8k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: golangci-lint | ||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
checks: write # Optional: allow write access to checks to allow the action to annotate code in the PR. | ||
|
||
jobs: | ||
golangci: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
cache: false | ||
|
||
- name: Touch approle | ||
run: touch ./local/vault/approle.json | ||
|
||
- name: Run Golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
args: --timeout 30m --verbose | ||
version: v1.60 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ run: | |
tests: true | ||
allow-parallel-runners: false | ||
allow-serial-runners: false | ||
# go: "1.17" # Do not set a go limit | ||
# go: "1.23" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this comment stick around? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't think it does any harm really |
||
|
||
issues: | ||
exclude-use-default: true | ||
|
@@ -53,8 +53,8 @@ linters: | |
|
||
# Style based linters | ||
- promlinter | ||
- gocritic | ||
- gocognit # To be fixed | ||
- gocritic | ||
- gocognit | ||
- goheader | ||
- importas | ||
- gci | ||
|
@@ -87,4 +87,4 @@ linters-settings: | |
sections: | ||
- standard | ||
- default | ||
- localmodule | ||
- localmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we can try turn this on in a follow-up PR and see what effect it has?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah definitely!