This is a clonable task for Google-Code-in-2017
Phan is a PHP static analysis tool that can identify problems with code without actually executing it. We use it in MediaWiki core and a few other extensions, and I'd like to add it to more. The process is generally straightforward.
- Example patch to extension: https://gerrit.wikimedia.org/r/#/c/387958/
- Example patch to CI (Continuous Integration): https://gerrit.wikimedia.org/r/#/c/387960/
- Example patch to add any other MediaWiki extensions as a dependency (if necessary): https://gerrit.wikimedia.org/r/#/c/400173/
Please use the Gerrit topic of "phan" for your commits.
A more in-depth tutorial can be found at https://www.mediawiki.org/wiki/Continuous_integration/Tutorials/Add_phan_to_a_MediaWiki_extension
First we can start with the tarball bundled extensions and skins:
- Cite
- CiteThisPage
- ConfirmEdit
- Gadgets
- ImageMap
- InputBox
- Interwiki
- LocalisationUpdate
- Nuke
- ParserFunctions
- PdfHandler
- Poem
- Renameuser
- SpamBlacklist
- SyntaxHighlight_GeSHi
- TitleBlacklist
- WikiEditor
- CologneBlue skin
- MonoBook skin
- Modern skin
- Vector skin