-
Notifications
You must be signed in to change notification settings - Fork 48
Add golangci-lint and fixup flagged issues #116
Conversation
Azadehkhojandi
left a comment
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.
Thank you so much for your PR, I had a few suggestions/questions.
|
|
||
| # Run go fmt against code | ||
| fmt: | ||
| go fmt ./... |
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.
what was the reason of changing go fmt ./... to find . -name '*.go' | grep -v vendor | xargs gofmt -s -w?
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.
the golangci-lint checks that the code has been simplified and I reused the fmt command from other projects to apply the simplification and to ignore vendored packages (avoids linter failures on those if vendoring is ever used)
70cb83c to
abb9853
Compare
|
/azp list |
|
CI/CD Pipelines for this repository: |
abb9853 to
bda38cf
Compare
bda38cf to
2865b69
Compare
84dd827 to
8ed13f6
Compare
b64f120 to
466cdee
Compare
Azadehkhojandi
left a comment
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.
Looks good to me, thanks
Addresses #111