This repository was archived by the owner on Nov 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ const ruleLeadMatter = 'Rules are organized into familiar rule groups.';
5555final List <LintRule > rules =
5656 new List <LintRule >.from (ruleRegistry, growable: false )..sort ();
5757
58- String get enumeratePubRules => rules
59- .where ((r) => r.group == Group .pub )
58+ String get enumerateErrorRules => rules
59+ .where ((r) => r.group == Group .errors )
6060 .map ((r) => '${toDescription (r )}' )
6161 .join ('\n\n ' );
6262
@@ -65,6 +65,11 @@ String get enumerateGroups => Group.builtin
6565 '<li><strong>${g .name }</strong> - ${markdownToHtml (g .description )}</li>' )
6666 .join ('\n ' );
6767
68+ String get enumeratePubRules => rules
69+ .where ((r) => r.group == Group .pub)
70+ .map ((r) => '${toDescription (r )}' )
71+ .join ('\n\n ' );
72+
6873String get enumerateStyleRules => rules
6974 .where ((r) => r.group == Group .style)
7075 .map ((r) => '${toDescription (r )}' )
@@ -212,6 +217,10 @@ class Indexer {
212217 ${markdownToHtml (ruleFootMatter )}
213218 </p>
214219
220+ <h2 id="styleguide-rules">Error Rules</h2>
221+
222+ $enumerateErrorRules
223+
215224 <h2 id="styleguide-rules">Style Rules</h2>
216225
217226 $enumerateStyleRules
You can’t perform that action at this time.
0 commit comments