Page MenuHomePhabricator

🟦 Enable linting for php code
Closed, ResolvedPublic

Description

  • use the standard Wikibase rules (see .phpcs.xml at wikibase root)
  • add a sniff to require setting strict_types=1 in the new rest-api directory
  • add a sniff to require type hints on all methods

Event Timeline

Silvan_WMDE renamed this task from Enable linting for php code to 🟦 Enable linting for php code.Feb 23 2022, 8:22 AM

Change 765251 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: extend Wikibase PHPCS config in rest-api dir

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

Change 765251 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: extend Wikibase PHPCS config in rest-api dir

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