Skip to content

bhsd-harry/lint-wiki-dumps

Repository files navigation

Lint-Wiki-Dumps

npm version CodeQL Codacy Badge

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-dumps

Optional Dependencies

You can also install vscode-css-languageservice to lint inline CSS in Wikitext:

npm i vscode-css-languageservice

Usage

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/dumps

or 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/dumps

Report

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.

About

Lint Wikipedia dumps

Topics

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Contributors