-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Hygiene: enabled presets and various linters. #6518
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/hold On hold at least until tektoncd/plumbing#1389 is merged + deployed to our CI. |
This enables some new linters and disables some deprecated ones. Context: tektoncd/pipeline#5899 This PR is step one in unblocking tektoncd/pipeline#6518 /kind cleanup
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
This change will update our plumbing to include #1389 as well as any other changes since the last upgrade. Context: tektoncd/pipeline#6518 Issue: tektoncd/pipeline#5899 /kind cleanup
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/retest-required |
/retest |
/retest |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of these comments are blocking.
/lgtm
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/lgtm |
Explicitly enabled: - maintidx - makezero - mustag - nakedret - nilerr - nilnil - noctx - nolintlint - nosprintfhostport Implicitly enabled: all other default linters in the presets. - increased timeout from 10m --> 20m to allow time for additional tests - fixed `presets` configuration, which wasn't formated properly and did not in fact activate the presets - explicitly disabled some linters (enabled by `presets`) that highlight too many issues to resolve in this PR - fixed host-port issues identified by `nosprintfhostport` - fixed issues in step_output_test.go found by `exportloopref` - removed defunct `nolint:revive` pragmas - fixed format of `//nolint` directives in conformance with `nolintlint` - added needed `//nolint` directives.
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: imjasonh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @bendory !
/lgtm
Changes
Context: #5899
There are no expected functional changes in this PR.
Explicitly enabled:
Implicitly enabled: all other default linters in the presets.
presets
configuration, which wasn't formated properly and did not in fact activate the presetspresets
) that highlight too many issues to resolve in this PRnosprintfhostport
nolint:revive
pragmas//nolint
directives in conformance withnolintlint
//nolint
directives.Note: hub resolver now passes
context.Context
through to httpGET
call. It is possible that, prior to thischange, the http
GET
would succeed despite a context timeout or cancellation; after this change, that callwould fail with a context timeout or cancellation error. I consider this a pathological condition and not a
functional change.
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes