| | | 1 | | using AspxLint.Core.Rules; |
| | | 2 | | |
| | | 3 | | namespace AspxLint.Core; |
| | | 4 | | |
| | | 5 | | public static class RuleRegistry |
| | | 6 | | { |
| | 5 | 7 | | public static readonly IReadOnlyList<IRule> All = new IRule[] |
| | 5 | 8 | | { |
| | 5 | 9 | | // Directives |
| | 5 | 10 | | new Dir001PageDirective(), |
| | 5 | 11 | | |
| | 5 | 12 | | // Balises |
| | 5 | 13 | | new Tag001VoidElementsXhtml(), |
| | 5 | 14 | | new Tag002TagCase(), |
| | 5 | 15 | | new Tag003UnbalancedTags(), |
| | 5 | 16 | | |
| | 5 | 17 | | // Attributs |
| | 5 | 18 | | new Attr001MissingQuotes(), |
| | 5 | 19 | | new Attr002MixedQuotes(), |
| | 5 | 20 | | new Attr003DuplicateAttribute(), |
| | 5 | 21 | | |
| | 5 | 22 | | // ASP.NET controls |
| | 5 | 23 | | new Asp001ControlMissingRunat(), |
| | 5 | 24 | | new Asp002DuplicateControlId(), |
| | 5 | 25 | | new Asp003ContentPlaceHolderMissingId(), |
| | 5 | 26 | | new Asp004ContentMissingPlaceHolderId(), |
| | 5 | 27 | | new Asp005ServerTagSpaces(), |
| | 5 | 28 | | |
| | 5 | 29 | | // Whitespace |
| | 5 | 30 | | new Ws001TrailingWhitespace(), |
| | 5 | 31 | | new Ws002MixedIndent(), |
| | 5 | 32 | | new Ws003ConsecutiveBlankLines(), |
| | 5 | 33 | | new Ws004FinalNewline(), |
| | 5 | 34 | | new Ws005Bom(), |
| | 5 | 35 | | |
| | 5 | 36 | | // Encodage |
| | 5 | 37 | | new Char001UnescapedAmpersand(), |
| | 5 | 38 | | |
| | 5 | 39 | | // Commentaires |
| | 5 | 40 | | new Com001NestedDashes(), |
| | 5 | 41 | | |
| | 5 | 42 | | // Securite |
| | 5 | 43 | | new Sec001ViewStateMacFalse(), |
| | 5 | 44 | | |
| | 5 | 45 | | // DOCTYPE |
| | 5 | 46 | | new Doc001MissingDoctype(), |
| | 5 | 47 | | |
| | 5 | 48 | | // Form runat |
| | 5 | 49 | | new Form001FormMissingRunat(), |
| | 5 | 50 | | |
| | 5 | 51 | | // Script Manager |
| | 5 | 52 | | new Sm001MultipleScriptManager(), |
| | 5 | 53 | | }; |
| | | 54 | | } |