lint-wiki-dumps
v0.9.1
Published
Lint Wikipedia dumps
Readme
Lint-Wiki-Dumps
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.
Installation
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 its optional dependency vscode-css-languageservice to lint inline CSS in Wikitext:
npm i vscode-css-languageserviceUsage
npx 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/dumpsReport
The 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.
