builder:DefaultReadmeIndexBuilder: move table header to README-template.md
This commit is contained in:
parent
9f979955f8
commit
4989f21331
2 changed files with 7 additions and 9 deletions
|
@ -44,17 +44,13 @@ public class DefaultReadmeIndexBuilder implements ReadmeIndexBuilder {
|
||||||
|
|
||||||
private static final String NEWLINE = "\n";
|
private static final String NEWLINE = "\n";
|
||||||
|
|
||||||
private static final String HEADERROW = "Rule|Level|Source|Enabled|Suppressable\n";
|
|
||||||
|
|
||||||
private static final String SEPARATOR = "----|-----|------|-------|------------\n";
|
|
||||||
|
|
||||||
private static final Locale LOCALE = Locale.ENGLISH;
|
private static final Locale LOCALE = Locale.ENGLISH;
|
||||||
|
|
||||||
private final RulesProperties rulesProperties;
|
private final RulesProperties rulesProperties;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final String build() {
|
public final String build() {
|
||||||
return HEADERROW + SEPARATOR + rulesProperties.getRules()
|
return rulesProperties.getRules()
|
||||||
.stream()
|
.stream()
|
||||||
.sorted(Comparator.comparing(lowerCaseRuleName()))
|
.sorted(Comparator.comparing(lowerCaseRuleName()))
|
||||||
.map(this::formatRuleRow)
|
.map(this::formatRuleRow)
|
||||||
|
|
|
@ -102,6 +102,8 @@ from the previous.
|
||||||
|
|
||||||
## All Checks
|
## All Checks
|
||||||
|
|
||||||
|
Rule|Level|Source|Enabled|Suppressable
|
||||||
|
----|-----|------|-------|------------
|
||||||
%s
|
%s
|
||||||
|
|
||||||
## Enabled Checks
|
## Enabled Checks
|
||||||
|
|
Loading…
Reference in a new issue