Page MenuHomePhabricator

[ES-M1] Update `mediawiki-codesniffer` in EntitySchema extension
Closed, ResolvedPublic2 Estimated Story Points

Description

The current mediawiki-codesniffer definitions for the EntitySchema extension are out of date and should be updated.

Acceptance Criteria:

  • mediawiki-codesniffer is updated to the latest version
  • Any code style violations that are found should be fixed

Event Timeline

Prio notes

  • Impact areas: Analyzability
  • Does not affect end users / production
  • Affects development efforts
  • Does not affect onboarding efforts
  • Does not affect additional stakeholders
ItamarWMDE renamed this task from Update `mediawiki-codesniffer` in EntitySchema extension to [ES-M1] Update `mediawiki-codesniffer` in EntitySchema extension.Mar 2 2023, 8:06 AM
noarave set the point value for this task to 2.Mar 9 2023, 9:56 AM
noarave moved this task from Unified DOT Backlog to Sprint-∞ on the Wikidata Dev Team board.

Change 896351 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Update mediawiki PHPCS config to 41.0.0

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

Change 896364 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Begin to make use of new PHPCS rules in new code

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

Change 896351 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Update mediawiki PHPCS config to 41.0.0

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

Change 897956 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Enforce trailing commas in multi-line arrays

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

Change 897956 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Enforce trailing commas in multi-line arrays

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

Not sure if that belongs in this task, WDYT? :)

Change 897956 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Enforce trailing commas in multi-line arrays

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

Not sure if that belongs in this task, WDYT? :)

I think it fits 👍

Do we have a rule for enforcing declare( strict_types=1 ); that we could turn on/add?

Change 897956 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Enforce trailing commas in multi-line arrays

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

Change 896364 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Begin to make use of new PHPCS rules in new code

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

Change 900223 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Have phpcs require strict types in new code

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

Change 900223 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Have phpcs require strict types in new code

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

ItamarWMDE updated the task description. (Show Details)