There is a possibility to create Validation rules that are run before calling the Run method for the current command, we should leverage this ability to run through any validation rule implemented when a package is being pushed to the Chocolatey Package Repository, and possibly to other places as well (but switching errors to be warnings in this case).
Why Is It Needed
Would be good to have the ability to validate the rules before pushing a package, instead of just when creating the package.
Related Issues and Tickets
N/A
Acceptance Tests
Pushing package to CCR validates all package rules.
Pushing package to other sources validates all rules while changing errors to warnings (optional).
This validation is not run on other commands.
Done Checklist
[x] Add validation handler to run through the rule validator
Description
There is a possibility to create Validation rules that are run before calling the
Run
method for the current command, we should leverage this ability to run through any validation rule implemented when a package is being pushed to the Chocolatey Package Repository, and possibly to other places as well (but switching errors to be warnings in this case).Why Is It Needed
Would be good to have the ability to validate the rules before pushing a package, instead of just when creating the package.
Related Issues and Tickets
N/A
Acceptance Tests
Done Checklist