-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
enable gofmt,golint and fix lint errors #1159
Conversation
Signed-off-by: silenceper <[email protected]>
How does this works with this: https://github.com/kedacore/keda/blob/v2/Makefile#L199-L215 |
|
@silenceper ok, would you mind changing the Makefile accordingly, please? |
Signed-off-by: silenceper <[email protected]>
PTAL |
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'm not I understand why the previous one was missing those files. from the help, it seems that go fmt
runs gofmt -l -w
. Maybe it's the -s
for simplify code? Anyway, this looks good to me. Thanks @silenceper again.
Yes, I add -s to gofmt,otherwise golangci will fail to detect |
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.
LGTM
* enable gofmt,golint and fix lint errors Signed-off-by: silenceper <[email protected]> * fix Makefile: change to golangci Signed-off-by: silenceper <[email protected]>
Signed-off-by: Andy Ward <[email protected]> Signed-off-by: Eldarrin <[email protected]> Signed-off-by: Eldarrin <[email protected]> Signed-off-by: Zbynek Roubalik <[email protected]> Co-authored-by: Jorge Turrado Ferrero <[email protected]> Co-authored-by: Zbynek Roubalik <[email protected]> Co-authored-by: Tom Kerkhove <[email protected]>
Signed-off-by: silenceper [email protected]
enable gofmt,golint for golangci, and fix lint errors.
gofmt file
pkg/scalers/azure/azure_monitor_test.go
Checklist
Fixes #