CPMR0050 - Title Matches Id (nuspec)

CPMR0050 - Title Matches Id (nuspec)

WARNING

This rule has been marked as a Guideline

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

WARNING

There was a bug where it was not taking case into account. We’ve fixed the bug, but you may end up here - https://github.com/chocolatey/home/issues/32

Issue

In the nuspec, the id of the package <id /> was found to match exactly with <title />.

In the nuspec, ensure the <id /> is completely lowercase (e.g. “thispackage”) and the <title /> uses title case (e.g. “This Package”).

Reasoning

In general, the id should be lowercase (“thispackage”) and a title should have title case (“ThisPackage”). The names may match, but what we are generally searching for is whether someone has ran the template generation and then forgotten to update the title in the nuspec to something more appropriate.