-
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 <silenceper@gmail.com>
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 <silenceper@gmail.com>
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 <silenceper@gmail.com> * fix Makefile: change to golangci Signed-off-by: silenceper <silenceper@gmail.com>
Signed-off-by: Andy Ward <mortx@toothless.eldarrin.io> Signed-off-by: Eldarrin <mortxbox@live.com> Signed-off-by: Eldarrin <32762846+Eldarrin@users.noreply.github.com> Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com> Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com> Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
Signed-off-by: silenceper silenceper@gmail.com
enable gofmt,golint for golangci, and fix lint errors.
gofmt file
pkg/scalers/azure/azure_monitor_test.go
Checklist
Fixes #