Skip to content

Linting tidy-ups#1582

Merged
jedevc merged 3 commits intodocker:masterfrom
jedevc:lint-fixups
Feb 1, 2023
Merged

Linting tidy-ups#1582
jedevc merged 3 commits intodocker:masterfrom
jedevc:lint-fixups

Conversation

@jedevc
Copy link
Collaborator

@jedevc jedevc commented Feb 1, 2023

Adds two new linting rules, gosec (to catch potential security issues, similar to moby/buildkit#3224), and forbidigo (to catch use of fmt.Errorf, similar to moby/buildkit#3305).

The gosec fixups did catch a couple of loop reference issues in the bake code, where we continued looping after capturing a reference from the loop - which would invalidate that reference. @crazy-max can you confirm these look alright to you now?

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jedevc jedevc merged commit d2fa4a5 into docker:master Feb 1, 2023
@jedevc jedevc deleted the lint-fixups branch February 1, 2023 16:08
@crazy-max crazy-max added this to the v0.10.3 milestone Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants