Skip to content

Commit ab491da

Browse files
committed
feat(#15): fix typos
1 parent 6b1f20f commit ab491da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/eolang/lints/MarkdownLinter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")) {

src/main/javascript/markdownlint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
*/
99
import { lint as lintSync } from "markdownlint/sync";
1010

0 commit comments

Comments
 (0)