Page MenuHomePhabricator

Audit PHPCSExtra to see if there are any sniffs we may want to add to our ruleset
Closed, ResolvedPublic

Description

Following up from T349153, we should audit the PHPCSExtra package to see if there are any sniffs that we may want to add to our ruleset. Universal.WhiteSpace.DisallowInlineTabs might be an example.

Event Timeline

Change 967312 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/codesniffer@master] Add first batch of rules from the PHPCSExtra standards

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

Change 967315 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/codesniffer@master] Enable the `Universal.WhiteSpace.CommaSpacing` sniff

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

Change 967316 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/core@master] Allow the `phpcodesniffer-composer-installer` composer plugin

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

Change 967317 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/codesniffer@master] Replace ShortListSyntaxSniff with upstream sniff

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

Change 967318 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/tools/codesniffer@master] Replace AlternativeSyntaxSniff with upstream sniff

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

Change 967316 merged by jenkins-bot:

[mediawiki/core@master] Allow the `phpcodesniffer-composer-installer` composer plugin

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

Change 967312 merged by jenkins-bot:

[mediawiki/tools/codesniffer@master] Add first batch of rules from the PHPCSExtra standards

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

Change 967315 merged by jenkins-bot:

[mediawiki/tools/codesniffer@master] Enable the `Universal.WhiteSpace.CommaSpacing` sniff

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

Change 967317 merged by jenkins-bot:

[mediawiki/tools/codesniffer@master] Replace ShortListSyntaxSniff with upstream sniff

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

Change 967318 merged by jenkins-bot:

[mediawiki/tools/codesniffer@master] Replace AlternativeSyntaxSniff with upstream sniff

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

Let's call this done for now. There are a couple more sniffs I'd like to enable but that need more work, so I'm going to create follow-up tasks for them.