Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Jul 3, 2024
1 parent f169bf9 commit 6befaaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ run-fix:
hexlet/languagetool-cli \
node ./bin/run.js fix /content/**/*.md

run-ignore:
docker run --rm \
-v ./fixtures:/content \
-v ./bin:/LanguageTool-6.4/bin \
-v ./src:/LanguageTool-6.4/src \
hexlet/languagetool-cli \
node ./bin/run.js ignore /content/**/*.md

test:
docker run --rm \
-v ./fixtures:/content \
Expand Down
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ program
const language = options.language;

const errors = await getErrors(dirPath, language, rules);
fs.writeFileSync(filePath, words.join('\n'), 'utf-8');
writeIgnoreErrorsFile(errors, filePath);
}, 5000));
});

Expand Down

0 comments on commit 6befaaa

Please sign in to comment.