-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolatey-community#34) Implement note rule CPMR0061 - Id Contains "."
This implements the note rule CPMR0061 that verifies whether a package uses a dot in its identifier, which is not recommended to do unless absolutely necessary. This implementation is more comprehensive than what is implemented in package validator, where package validator will have false negatives that this implementation will properly flag.
- Loading branch information
1 parent
e829301
commit d20f10e
Showing
10 changed files
with
120 additions
and
17 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.../IdElementRulesTests.ShouldFlagIdentifier_id=different.something.commandline.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
.../Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...ts/Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.install.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...s/Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.portable.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.powershell.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...s/Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.template.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...tion.Tests/Rules/IdElementRulesTests.ShouldFlagIdentifier_id=something.other.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
HelpUrl: https://ch0.co/rules/cpmr0061, | ||
Id: CPMR0061, | ||
Message: Package ID contains dots (.), that is not part of the accepted suffixes., | ||
Severity: Note | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters