README.md: fix links to rules

Having the level in the heading meant that the anchor link was modified,
breaking the links.
This commit is contained in:
Paul Campbell 2017-01-06 15:12:10 +00:00
parent c46668d1f1
commit affe65263a
2 changed files with 195 additions and 197 deletions

388
README.md

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,6 @@ import org.springframework.stereotype.Component;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Optional;
import java.util.stream.Stream;
/**
@ -39,7 +38,6 @@ class DefaultRuleReadmeLoader implements RuleReadmeLoader {
}
private String formatRuleHeader(final Rule rule) {
return String.format("%n#### [%s](%s) (%s)", rule.getName(), rule.getUri(), Optional.ofNullable(rule.getLevel())
.orElse(RuleLevel.UNSPECIFIED));
return String.format("%n#### [%s](%s)", rule.getName(), rule.getUri());
}
}