File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public Stream<Defect.Default> defects(final String text) {
5959 final Value errors = this .mdlint .execute (text );
6060 for (int idx = 0 ; idx < errors .getArraySize (); idx += 1 ) {
6161 final Value error = errors .getArrayElement (idx );
62- final String rule = getName (error .getMember ("ruleNames" ));
62+ final String rule = rule (error .getMember ("ruleNames" ));
6363 defects .add (
6464 new Defect .Default (
6565 rule ,
@@ -91,7 +91,7 @@ public void close() {
9191 * @return The first name starting with MD.
9292 * @throws IllegalStateException If no name starting with MD is found.
9393 */
94- private static String getName (final Value names ) {
94+ private static String rule (final Value names ) {
9595 for (int idx = 0 ; idx < names .getArraySize (); idx += 1 ) {
9696 final String name = names .getArrayElement (idx ).asString ();
9797 if (name .startsWith ("MD" )) {
Original file line number Diff line number Diff line change 44 */
55/**
66 * @todo #15:45min Add eslint to repository https://github.com/eslint/eslint.
7- * We should integrate eslint into the eslint repository to monitor the quality of code written in java script.
7+ * We should integrate eslint into repository to monitor the quality of code written in java script.
88 */
99import { lint as lintSync } from "markdownlint/sync" ;
1010
You can’t perform that action at this time.
0 commit comments