Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: More opinionated linting #5072

Merged
merged 6 commits into from
Feb 13, 2021
Merged

chore: More opinionated linting #5072

merged 6 commits into from
Feb 13, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Feb 10, 2021

  • Enable linters that are more opinioned about formatting (gci + gofumpt) esp. if they auto-fix. So we never have to think about this again.
  • Enable linters that reveal potential bugs in the code (e.g. unparam)

Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
@alexec alexec closed this Feb 10, 2021
@alexec alexec deleted the lint branch February 10, 2021 19:45
@alexec alexec restored the lint branch February 12, 2021 23:02
@alexec alexec reopened this Feb 12, 2021
@@ -1733,8 +1736,8 @@ func TestUnknownPodGCStrategy(t *testing.T) {

assert.EqualError(t, err, "podGC.strategy unknown strategy 'Foo'")

for _, strat := range []wfv1.PodGCStrategy{wfv1.PodGCOnPodCompletion, wfv1.PodGCOnPodSuccess, wfv1.PodGCOnWorkflowCompletion, wfv1.PodGCOnWorkflowSuccess} {
wf.Spec.PodGC.Strategy = strat
for _, start := range []wfv1.PodGCStrategy{wfv1.PodGCOnPodCompletion, wfv1.PodGCOnPodSuccess, wfv1.PodGCOnWorkflowCompletion, wfv1.PodGCOnWorkflowSuccess} {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix error

@alexec alexec marked this pull request as ready for review February 12, 2021 23:06
@alexec alexec changed the title chore: Auto-fix linters chore: More opinioned linting Feb 12, 2021
@alexec alexec changed the title chore: More opinioned linting chore: More opinionated linting Feb 12, 2021
@alexec alexec requested a review from simster7 February 12, 2021 23:10
Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

Rubber-stamp

Signed-off-by: Alex Collins <[email protected]>
@alexec alexec merged commit a50ddb2 into argoproj:master Feb 13, 2021
@alexec alexec deleted the lint branch February 13, 2021 01:07
alexec added a commit that referenced this pull request Feb 15, 2021
@simster7 simster7 mentioned this pull request Feb 16, 2021
33 tasks
@simster7 simster7 mentioned this pull request Feb 23, 2021
34 tasks
@simster7 simster7 mentioned this pull request Mar 8, 2021
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.

None yet

2 participants