Replies: 4 comments 6 replies
-
If we are anyway at ~40 % enabled, how about we switch to enable all and then disable those that fail? Then it will be more obvious what we have disabled and we can create specific issues for fixing and enabling those that we care about. |
Beta Was this translation helpful? Give feedback.
-
@lentzi90 I actually went for the opposite in IrSO in metal3-io/ironic-standalone-operator#94 but I agree with that, I'm still in time to change it in case we want to experiment there as the lint test is not active yet |
Beta Was this translation helpful? Give feedback.
-
@dtantsur did some checking in metal3-io/ironic-standalone-operator#184 and came up with a list of 68 linters that are worthy in his opinion. We could use this as a base what we want to include in each repo and use the same approach as the PR does - list all the linters we want to enable, and just comment out the ones that require further fixing in the code. I don't want to have this discussion forever open, so can you @adilGhaffarDev @kashifest @lentzi90 @elfosardo PTAL the list in the PR, and either agree or disagree on the list. |
Beta Was this translation helpful? Give feedback.
-
After confirming in community meeting that this is fine with everybody, I have created PRs to sync the configs and created issues for fixing the rest of the missing linters in all of the four repos this touches. Thank you for the discussion, I will close this thread as completed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Metal3, golangci-linter works by disabling all linters, and then white-listing the ones that pass.
We have couple issues about enabling more golangci-linters. We have 40+ in CAPM3 and BMO, 30+ in IPAM and 30+ now in IRSO.
There are 50 golangci-linters available white
enable-all: true
, with 100+ in total. We should have a discussion which ones we aim to enable, and then achieve that in all repositories under Metal3. We should also look at the exceptions we've accumulated over the years, and decide if they should be dropped, and if not, document them better.Based on the results of this discussion, I will adjust the linked issues and create new ones as needed.
Beta Was this translation helpful? Give feedback.
All reactions