Page MenuHomePhabricator

add phan to ci and local static code analysis
Closed, ResolvedPublic

Description

  • WMF is making a current version of the static php code analyzer phan available in ci[0]
  • we may want to add it to our extension as well [1]
  • However, the current config reports a lot of false positives (aka tiny code smells) that we may want to suppress
  • c.f. T217018: Upgrade Wikibase extension to use newer phan

[0]: https://lists.wikimedia.org/pipermail/wikitech-l/2019-February/091586.html
[1]: https://www.mediawiki.org/wiki/Continuous_integration/Tutorials/Add_phan_to_a_MediaWiki_extension

Event Timeline

Change 493194 had a related patch set uploaded (by Michael Große; owner: Michael Große):
[mediawiki/extensions/WikibaseSchema@master] Use phan in CI and pre commit hook

https://gerrit.wikimedia.org/r/493194

Change 493213 had a related patch set uploaded (by Michael Große; owner: Michael Große):
[integration/config@master] Enable phan for WikibaseSchema

https://gerrit.wikimedia.org/r/493213

Change 493194 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Add phan config

https://gerrit.wikimedia.org/r/493194

Change 493213 merged by jenkins-bot:
[integration/config@master] Enable phan for WikibaseSchema

https://gerrit.wikimedia.org/r/493213

Change 493673 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Improve phan config

https://gerrit.wikimedia.org/r/493673

Change 493673 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Improve phan config

https://gerrit.wikimedia.org/r/493673