Instead of having phpcs --standard=./MediaWiki --extensions=php,php5,inc --ignore=vendor,*fail.php -p . in composer.json, we should use the phpcs.xml file.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
build: Add and use phpcs.xml | mediawiki/tools/codesniffer | master | +9 -1 |
Event Timeline
Comment Actions
@Legoktm: I am currently working on this bug and is it that I have to create a new phpcs.xml file and add the parameters --standard , --extension , --ignore and call the file here.
Comment Actions
Yes, those parameters should go in the phpcs.xml file. See how it's setup in https://github.com/wikimedia/mediawiki-extensions-AbsenteeLandlord for example,
Comment Actions
Change 263222 had a related patch set uploaded (by Haritha28):
Update mediawiki/tools/codesniffer with phpcs.xml