-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
style: apply any / all automated lint fixes #15644
Conversation
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.
gosec found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
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.
this is adding linting errors
can you elaborate? it was produced like: git clone https://github.com/cosmos/cosmos-sdk
cd cosmos-sdk
make lint-fix
git commit -a
gh pr create Also, I'm not seeing where it would add linter errors -- the nolints it took out, we aren't checking for anymore |
^^^ |
that is in CI somewhere else, not golangci-lint. Whatever job that is we need to configure it same as linter That particular CI job seems to be part of githubs code scanning suite this is gosec g101 1 sec |
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, small nits
…os-sdk into make-lint-fix
I'm trying to generate the nit fixes, could take a second. |
make lint-fix
@julienrbrt -- odd thing: If I just save the file in my editor, I end up fixing those nits, but only if they're above a function. Removing the //nolint:interfacers, surfaced more nits, so one moment, I am nitting them now. |
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! just 3 spacing left to remove but all the rest lgtm!
@@ -20,7 +20,7 @@ var ( | |||
|
|||
// NewMsgSend - construct a msg to send coins from one account to another. | |||
// |
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.
1
@@ -134,7 +132,7 @@ func (m MsgSubmitProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) err | |||
|
|||
// NewMsgDeposit creates a new MsgDeposit instance | |||
// |
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.
3 in this file
@@ -45,7 +45,7 @@ | |||
|
|||
func (h Server) Start() error { | |||
h.logger.Info(fmt.Sprintf("Rosetta server listening on add %s", h.addr)) | |||
return http.ListenAndServe(h.addr, h.h) //nolint:gosec // users are recommended to operate a proxy in front of this server | |||
return http.ListenAndServe(h.addr, h.h) //nolint:gosec // users are recommended to operate a proxy in front of this server |
Check failure
Code scanning / gosec
Use of net/http serve function that has no support for setting timeouts
Description
works towards:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change