Wikimedia

Add phan (for static analysis) to 3 MediaWiki extensions: SyntaxHighlight_GeSHi, TitleBlacklist, WikiEditor

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.

Example patch to extension: https://gerrit.wikimedia.org/r/#/c/387958/ Example patch to CI (Continuous Integration) config: https://gerrit.wikimedia.org/r/#/c/387960/

A more in-depth tutorial can be found at https://www.mediawiki.org/wiki/Continuous_integration/Tutorials/Add_phan_to_a_MediaWiki_extension

Your task is to add Phan support to the three MediaWiki extensions mentioned in the task title. You will have to provide these three seperate patchsets in Wikimedia Gerrit. https://www.mediawiki.org/wiki/Gerrit/Tutorial explains how to set up Git and Gerrit (you only have to do this once) and how to check out ("git clone") the code repositories.

If you have general questions, please ask them in https://phabricator.wikimedia.org/T179554 where also other Wikimedia community members (who are not registered on the GCI website) can see them and help you.

Task tags

  • codequality
  • staticanalysis

Students who completed this task

Rafid Aslam

Task type

  • code Code
  • done_all Quality Assurance
close

2017