Skip to content

lint: add nolintlint and clean up nolint directives#9738

Merged
milas merged 1 commit intodocker:v2from
milas:lint-nolint
Aug 9, 2022
Merged

lint: add nolintlint and clean up nolint directives#9738
milas merged 1 commit intodocker:v2from
milas:lint-nolint

Conversation

@milas
Copy link
Contributor

@milas milas commented Aug 9, 2022

What I did
We had some incorrectly formatted and/or ineffective nolint directives hanging around. I added nolintlint to the list of linters, fixed up some violations it flagged, and did some creative finds to look for some other weird/pointless ones (but spent about 5 mins on this, so it's not exhaustive).

Thanks to @thaJeztah for pointing this out @ #9728 (review)

Related issue
N/A

(not mandatory) A picture of a cute animal, if possible in relation with what you did
capybaras relaxing in the bath

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
@milas milas requested review from a team and thaJeztah August 9, 2022 20:36
@milas milas self-assigned this Aug 9, 2022
@milas milas changed the title lint: add nolintlint and clean up nolint directives lint: add nolintlint and clean up nolint directives Aug 9, 2022
Copy link
Member

@nicksieger nicksieger left a comment

Choose a reason for hiding this comment

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

👍

@milas milas merged commit 27227a8 into docker:v2 Aug 9, 2022
@milas milas deleted the lint-nolint branch August 9, 2022 20:44
- lll
- misspell
- nakedret
- nolintlint
Copy link
Member

Choose a reason for hiding this comment

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

Oh! Didn't know about this linter; looks handy. Perhaps I should enable it one some other repositories

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.

3 participants