Various code utilities (like linting, line endings, stylizing, etc)

Clone this repo:

Branches

  1. af1f631 build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 by libraryupgrader · 5 weeks ago master
  2. cb2c86b stdin and stdout by Wendy Quarshie · 3 months ago
  3. 5e77764 Extensions and Hooks by Wendy Quarshie · 3 months ago
  4. 8f540b3 wmf-config-wg-vars: prefer git-grep over ack for portability by Timo Tijhof · 6 months ago
  5. c21738f wmf-config-wg-vars: remove last use of npm, update wmf-config exclude by Timo Tijhof · 6 months ago

MediaWiki code-utils

A collections of code utilities for MediaWiki.

Lint and style checks

You can run PHP checks via composer:

composer install
composer test

Shell scripts should be passed through https://www.shellcheck.net/ . You can use the Wikimedia Foundation CI container image:

docker run --rm -it -v "$(pwd):/src" docker-registry.wikimedia.org/releng/shellcheck