enforce explanation for necessary nolints and fix bugs#34883
Conversation
fill in missing ones
|
Next potential step: |
|
Missed one: I'd suggest merging the comment above into the nolint comment. I don't think this |
|
Interesting that the |
|
it does work: it won't trigger for disabled linters (or so I suspect, I'm not sure if that's accurate), so things like |
Might be a golangci-lint bug, thought I'm not 100% what the correct behaviour should be. |
|
Sometimes the linter is right and we need to fix the bugs instead of continuing using "nolint" For example: |
|
I made some changes:
Each change is independent so hopefully it wont' be too difficult to review. 🙏 |
* giteaofficial/main: Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (go-gitea#34901) Improve tags list page (go-gitea#34898) [skip ci] Updated translations via Crowdin docs: fix typo in pull request merge warning message text (go-gitea#34899) Refactor container package (go-gitea#34877) [skip ci] Updated translations via Crowdin Fix project column edit (go-gitea#34890) Upgrade htmx to 2.0.6 (go-gitea#34887) Optimize flex layout of release attachment area (go-gitea#34885) Improve `labels-list` rendering (go-gitea#34846) enforce explanation for necessary nolints and fix bugs (go-gitea#34883) Fix a regression when refactoring fork list (go-gitea#34879) enforce nolint scope (go-gitea#34851)
Follows up #34851
I've marked one as TODO because I don't think it's a valid use of it. Second options and improvements on the explanations are very much welcome