This is a tool for linting Wikitext articles from Wikipedia with the help of WikiLint. It will download the latest dump of a specified Wikipedia language edition and then lint the articles in the dump.
To run this tool, you need to have curl installed on your system. You can install this tool via npm:
npm i lint-wiki-dumpsYou can also install vscode-css-languageservice to lint inline CSS in Wikitext:
npm i vscode-css-languageservicenpx lint-wiki-dumps <language> <path to download> [path to HTML output] [path to JSON output]
# For example:
npx lint-wiki-dumps zh-yue ~/Downloads/dumpsor execute the Bash script scan.sh directly:
bash scan.sh <language> <path to download> [path to HTML output] [path to JSON output]
# For example:
bash scan.sh zh-yue ~/Downloads/dumpsThe tool will generate reports in two formats: JSON and HTML. The JSON report will be saved in the results folder or the specified path, while the HTML report will be available at reports/index.html or the specified path.