This implements the note rule CPMR0062 - Chocolatey Dependency, which
checks if there is a dependency on Chocolatey CLI defined in the nuspec
file.
Motivation and Context
This is checked as normally there is no need to define Chocolatey
CLI as a dependency, unless a specific feature is being used. As such,
it is considered to be an anti-pattern to define one.
Testing
Create a new nuspec file.
Add a dependency on the package chocolatey in the nuspec file
Attempt to run choco pack on the nuspec file.
Ensure a informational message about the rule CPMR0062 is shown.
Operating Systems Testing
Windows 10
Change Types Made
[ ] Bug fix (non-breaking change).
[x] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
[ ] Documentation changes.
[ ] PowerShell code changes.
Change Checklist
[x] Requires a change to the documentation (In chocolatey/docs repository).
Description Of Changes
This implements the note rule CPMR0062 - Chocolatey Dependency, which checks if there is a dependency on Chocolatey CLI defined in the nuspec file.
Motivation and Context
This is checked as normally there is no need to define Chocolatey CLI as a dependency, unless a specific feature is being used. As such, it is considered to be an anti-pattern to define one.
Testing
chocolatey
in the nuspec filechoco pack
on the nuspec file.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Fixes #35