chocolatey-community / chocolatey-community-validation

Chocolatey CLI extension to bring community package validation rules to the console
Apache License 2.0
1 stars 4 forks source link

Implement note rule CPMR0069 - Package Id is too long, and doesn't contain dashes #38

Closed AdmiringWorm closed 2 hours ago

AdmiringWorm commented 6 months ago

Checklist

Is Your Feature Request Related To A Problem? Please describe.

No response

Describe The Solution. Why is it needed?

We should implement the note rule available in Package Validator that verifies the length of the package identifier. A package identifier should never be equal or exceed the length of 20 characters, unless it also has dashes (-) in its name as well.

The suffixes .install, .template, .install, .portable and .powershell should not be included when determining the length.

We will make this rule stricter than the rule implemented by Package Validator, and ensure the length does not exceed or is equal to 20 characters between dashes as well.

Additional Context

Rule Documentation: https://ch0.co/rules/cpmr0069

Related Issues

No response