-
Notifications
You must be signed in to change notification settings - Fork 250
Add golangci-lint #2010
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
Merged
Merged
Add golangci-lint #2010
Changes from 42 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
1eaf754
Print out lint results
gapra-msft 19062e5
Fixed errcheck errors
gapra-msft 8aaee4a
Fixed some gosimple errors
gapra-msft 3ddf75f
Add Golang CI Lint Action
gapra-msft 34838ab
Fix CI yml file
gapra-msft 9ff0610
Fixed ineffassign errors
gapra-msft 9f61cad
Fixed some staticcheck errors
gapra-msft 4ced119
Fixed errcheck issues
gapra-msft 7b89b52
Fixed some gosimple
gapra-msft 486c0be
errcheck fixes
gapra-msft 329f984
Fixed few more issues
gapra-msft d2acc2a
skip files correction
gapra-msft 7bc2737
Fixed a few more errors
gapra-msft f544f20
Fixed rest of printf println issues
gapra-msft f857e3e
Fix all ioutil issues
gapra-msft c1ed142
import io
gapra-msft 0eeb95c
Allow nolint
gapra-msft 42434b7
Marked or removed unused code
gapra-msft 58d1bb5
Fixed some unused errors
gapra-msft 46c107d
Fixed a few more unused errors
gapra-msft dc57b31
Undo generated file changes
gapra-msft 3d57e91
resolved more unused
gapra-msft 54b0def
exclude S1008
gapra-msft 2ffb093
resolved all lint issues
gapra-msft fc9dc20
Fix static check
gapra-msft 30b38c2
resolve last couple checks
gapra-msft 2e1f3cd
remove workflow
gapra-msft 34d523b
Merge branch 'dev' into gapra/golint
gapra-msft ca2ea3d
Added github file
gapra-msft 35ba21d
v2
gapra-msft e75eaaa
ubuntu latest
gapra-msft d99b38a
deadcode
gapra-msft 25cd90f
Added deadcode
gapra-msft a410848
Varcheck
gapra-msft af442a6
Added windows and macos
gapra-msft 97d8ef8
increase timeout
gapra-msft 51cdbd0
windows lint
gapra-msft 15a5997
more windows errors
gapra-msft 375e141
ineffassign
gapra-msft 398e1c4
replace the ci job with github action
gapra-msft 944a992
remove todo
gapra-msft e6814ba
Merge branch 'dev' into gapra/golint
gapra-msft 67e42ff
Update the linting
gapra-msft 7bb68ec
more lint fix
gapra-msft 38030f1
Addressed some review comments
gapra-msft 711c7c7
Merge branch 'dev' into gapra/golint
gapra-msft 6391c3a
clean up nolint in e2etest
gapra-msft 1f5e002
add another lint flag
gapra-msft c79479e
Add log for seek on error in azbfs
gapra-msft 6b93690
Brought back isObjectAce
gapra-msft 2435b8f
add unused label
gapra-msft 90aeba6
fixed nolint tag
gapra-msft ac396cd
added unused
gapra-msft 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 hidden or 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,40 @@ | ||
| name: golangci-lint | ||
| on: | ||
| push: | ||
| branches: | ||
| - dev | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| - main | ||
| permissions: | ||
| contents: read | ||
| # Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
| # pull-requests: read | ||
| jobs: | ||
| golangci: | ||
| strategy: | ||
| matrix: | ||
| go: [1.17] | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
| name: lint | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: ${{ matrix.go }} | ||
| - uses: actions/checkout@v2 | ||
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@v2 | ||
| with: | ||
| # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
| version: v1.46 | ||
| # Optional: working directory, useful for monorepos | ||
| # working-directory: somedir | ||
|
|
||
| # Optional: golangci-lint command line arguments. | ||
| args: --tests=false --max-issues-per-linter=0 --skip-files=azbfs/zz_generated_* --exclude=S1008 --max-same-issues=0 --timeout 5m0s | ||
|
|
||
| # Optional: show only new issues if it's a pull request. The default value is `false`. | ||
| # only-new-issues: true |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.