Commit graph

12 commits

Author SHA1 Message Date
zoranzoki21 6c8a2f0549 Fix all PHPCS excluded rules
Change-Id: Ia80a6ae8a7ce91b66b88888a9dad3859018907ea
2022-03-05 15:03:36 +01:00
libraryupgrader a6599e6fe6 build: Updating eslint-config-wikimedia to 0.18.2
Additional changes:
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).

Change-Id: I222da0d80ad6a7f80d0b622273db5614d56a0620
2021-03-06 15:20:38 +00:00
libraryupgrader ab0cfa77aa build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
The following sniffs are failing and were disabled:
* Generic.Files.LineLength.TooLong

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: Ic8176d811bb7f452e3bd5cf843a2f8501f0b7412
2020-05-29 13:26:53 +00:00
Thiemo Kreuz 551649bdd1 Fix all PHPCS errors and update code to modern standards
There are still some exceptions in .phpcs.xml, but now they are for
blacklisted files only, instead of disabling the rules entirely.

Change-Id: I8101eb66fad39c2a87b2af397597b5a9b7729ed2
2019-11-12 10:06:27 +01:00
libraryupgrader 95c208fbd1 build: Updating mediawiki/mediawiki-codesniffer to 28.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingReturn

Change-Id: Iaa2ecc5b8b26b78fa8a723cab18bc5c67a21b5b2
2019-10-21 03:20:32 +00:00
Jack Phoenix ce2b57f492 Remove phpcs exclusion regarding the deprecated $wgContLang global
Follow-up to ddf6cc8fb8, which removed all usages of the aforementioned global.

Change-Id: I739e2dca595de4c2695c2055c13d40077befa05c
2019-08-05 17:34:59 +03:00
libraryupgrader c42a33ebed build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgContLang

Change-Id: I3442d2d77f7dbe03552ecc722108c35574084bf9
2019-02-06 13:07:47 +00:00
Kunal Mehta 845913bc83 Autofixing MediaWiki.Usage.DeprecatedConstantUsage.DB_SLAVE errors
Change-Id: Id5f6804262a86de6f0682c476ae4d1b2018ff112
2018-07-27 00:34:01 -07:00
Kunal Mehta f3559ba849 Autofixing MediaWiki.Commenting.* errors
Change-Id: Idb326bc8c63170930e741feaaa794a1a0003442b
2018-07-27 00:34:00 -07:00
Kunal Mehta cd3d28a0fd Autofixing Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma errors
Change-Id: I1f9b01d420991b7967ab14304bfeab26ca3e1221
2018-07-27 00:33:59 -07:00
Kunal Mehta ef551ef2cc Autofixing Generic.Arrays.DisallowLongArraySyntax.Found errors
Change-Id: Ia0ca1944331fc77b453c83bf4469fa46721f1a56
2018-07-27 00:33:58 -07:00
Kunal Mehta c39734df4f build: Add mediawiki/mediawiki-codesniffer
Change-Id: Ifa5292a056a6bbdcec5df60ce0ed35e53e62f320
2018-07-27 00:33:56 -07:00