Error codes

edit

Each error has a numeric code. Use it to ignore an error with ExcludedRuleIds or the --excluded-rule-ids option of the tool. The codes are grouped by tens, one group per topic. Rules explains how to fix each of them.

CodeNameReported by
1FileNotFoundThe validator: the package file does not exist
2InvalidPackageThe validator: the file cannot be read as a NuGet package
11AuthorNotSetAuthorMustBeSet
12DefaultAuthorSetAuthorMustBeSet
21LicenseNotSetLicenseMustBeSet
22UseDeprecatedLicenseUrlLicenseMustBeSet
23LicenseFileNotFoundLicenseMustBeSet
31UseDeprecatedIconUrlIconMustBeSet
32IconNotSetIconMustBeSet
33IconNotFoundIconMustBeSet
34IconFileTooLargeIconMustBeSet
35IconFileFormatNotSupportedIconMustBeSet
36IconFileInvalidExtensionIconMustBeSet
41UseDeprecatedSummaryDescriptionMustBeSet
42DescriptionNotSetDescriptionMustBeSet
43PackageHasDefaultDescriptionDescriptionMustBeSet
44PackageDescriptionIsTooLongDescriptionMustBeSet
51ProjectUrlNotSetProjectUrlMustBeSet
52ProjectUrlNotAccessibleProjectUrlMustBeSet, for the project URL and the repository URL
61ReadmeNotSetReadmeMustBeSet
62ReadmeFileNotFoundReadmeMustBeSet
71RepositoryNotSetRepositoryMustBeSet
72RepositoryTypeNotSetRepositoryMustBeSet
73RepositoryUrlNotSetRepositoryMustBeSet
74RepositoryCommitNotSetRepositoryMustBeSet
75RepositoryBranchNotSetRepositoryBranchMustBeSet
81AssemblyIsNotOptimizedAssembliesMustBeOptimized
91CannotCheckPackageIdExistsOnNuGetOrgPackageIdAvailableOnNuGetOrg
92PackageIdExistsOnNuGetOrgPackageIdAvailableOnNuGetOrg
101XmlDocumentationNotFoundXmlDocumentationMustBePresent
111SymbolsNotFoundSymbols
112NonDeterministicSymbols
113SourceFileNotAccessibleSymbols
114CompilerFlagsNotPresentSymbols
115InvalidCompilerVersionSymbols
116CompilerDoesNotSupportReproducibleBuildsSymbols
117FullPdbSymbols
118PdbDoesNotMatchAssemblySymbols
119UrlIsNotAccessibleSymbols
120FileHashIsNotValidSymbols
121FileHashIsNotProvidedSymbols
122NotSupportedHashAlgorithmSymbols
131TagsNotSetTagsMustBeSet
132TagsTooLongTagsMustBeSet

The names identify the errors in this documentation. The library exposes the codes only as numbers: in code, write the number with the name in a comment, as the examples do.