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

(#39) Add rule for validating underscore in ID #51

Closed AdmiringWorm closed 2 weeks ago

AdmiringWorm commented 2 weeks ago

Description Of Changes

This implements the note rule CPMR0070 that validates that a package identifier does not contain an underscore.

Motivation and Context

To improve the areas that this extension covers compared to package validator.

Testing

  1. Run choco new test_package.
  2. Update the nuspec content by removing all template values.
  3. Update required fields to have a valid value (Version, ProjectUrl, Description, etc).
  4. Attempt to run choco pack on the nuspec file.
  5. Ensure that the rule CPMR0070 is flagged and shown in the console.

Operating Systems Testing

Change Types Made

Change Checklist

Related Issue

Fixes #39

AdmiringWorm commented 2 weeks ago

documentation PR created at: https://github.com/chocolatey/docs/pull/1033

gep13 commented 2 weeks ago

@AdmiringWorm thanks for getting this added!