cmd/generate-config: address golangci-lint issues#2660
Conversation
|
A few small fixes needed (separation between code blocks). Also, did you run |
There was a problem hiding this comment.
@stgraber I am not sure if that's expected, the check on cast are not going to change behavior. If the cast would not happen without the check it would panic.
There was a problem hiding this comment.
We'll need to figure out exactly what change is causing the change to the generated output. It may be that using temporary variables somehow impacts iteration order or something.
@stgraber thanks for reviewing. Do we have the
I did commit the output of the task/job after it seems mostly reordering. Maybe you are hinting that some behavior changed but it should not be the case. |
No but we have our own variation of it in later static analysis tests. |
Yeah, each block must start by the |
I see, let me do some research and see what went wrong. |
|
|
|
@stgraber I think this version is not breaking the documentation anymore, if you can confirm. I am not sure why some of the tests are failing but it looks like some dependencies can't be download so it might have been temporary. |
Signed-off-by: Olivier Lechevalier <[email protected]>
4994f37 to
8055b29
Compare
This PR relates to #2636 and address the lint issues in
cmd/generate-config