enable no-unused-param tekton-lint rule#3090
enable no-unused-param tekton-lint rule#3090robnester-rh wants to merge 1 commit intoconforma:mainfrom
Conversation
This commit re-enables the `no-unused-param` tekton-lint rule which was previously disabled due to unused parameters in the tasks. To satisfy the lint rule, the `verify-conforma-konflux-vsa-ta` task was updated to use the `EXTRA_RULE_DATA` parameter. A second `--extra-rule-data` flag was added so the parameter is used while preserving the existing `pipeline_intention=release` behavior. The parameter description and documentation were updated to note that `pipeline_intention=release` is always included. Ref: EC-1635 Signed-off-by: Rob Nester <rnester@redhat.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
This merge is going to be dependent on a few other MRs/PRs for EC-1425, I'll merge this at the appropriate time. Currently that is likely to be on or around Feb 9. |
User description
This commit re-enables the
no-unused-paramtekton-lint rule which was previously disabled due to unused parameters in the tasks.To satisfy the lint rule, the
verify-conforma-konflux-vsa-tatask was updated to use theEXTRA_RULE_DATAparameter. A second--extra-rule-dataflag was added so the parameter is used while preserving the existingpipeline_intention=releasebehavior.The parameter description and documentation were updated to note that
pipeline_intention=releaseis always included.Ref: EC-1635
PR Type
Enhancement
Description
Re-enable
no-unused-paramtekton-lint rule by fixing unused parametersUpdate
verify-conforma-konflux-vsa-tatask to useEXTRA_RULE_DATAparameterAdd second
--extra-rule-dataflag to preservepipeline_intention=releasebehaviorUpdate parameter documentation to clarify
pipeline_intention=releaseinclusionDiagram Walkthrough
File Walkthrough
.tektonlintrc.yaml
Enable no-unused-param lint rule.tektonlintrc.yaml
no-unused-paramrule fromofftoerrorverify-conforma-vsa-release-ta.adoc
Clarify EXTRA_RULE_DATA parameter documentationdocs/modules/ROOT/pages/verify-conforma-vsa-release-ta.adoc
EXTRA_RULE_DATAparameter documentationpipeline_intention=releaseis alwaysincluded
verify-conforma-konflux-vsa-ta.yaml
Use EXTRA_RULE_DATA parameter in task commandtasks/verify-conforma-konflux-vsa-ta/0.1/verify-conforma-konflux-vsa-ta.yaml
EXTRA_RULE_DATAparameter description with clarification note--extra-rule-data=$(params.EXTRA_RULE_DATA)flag tocommand
EXTRA_RULE_DATAparameter is actually used in task executionpipeline_intention=releasebehavior with dual flags