Commit graph

13 commits

Author SHA1 Message Date
thiemowmde 8f81812242 Enable and enforce a few extra PHPCS sniffs
This is not really anything new. Most code already followed these
sniffs. This patch just fixes the remaining exceptions. Also:
* Remove PHPDoc blocks that don't add anything but just repeat the
  strict types.
* Remove @file comments in favor of class-level comments.
* Add strict types where possible, most notably some `void`.

Change-Id: Iff6872dff68170b0fc4e82ac2ba3cad385e8773e
2023-09-06 18:15:22 +02:00
Thiemo Kreuz d08a6448e9 Track when (relevant) changes are made to <templatedata> tags
Bug: T267926
Change-Id: I55f72500b7bad7e648238560b516e870bc9130c8
2020-12-07 15:34:13 +01:00
libraryupgrader 2d6c576b16 build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).

Change-Id: Ib6fc0608d7f7aedc792e5b86e0ffdafa42680759
2020-11-04 13:50:00 +00:00
libraryupgrader 44b26329b5 build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: I009704249014f2be31f60cf8de2f9732c24e8652
2020-09-25 10:34:56 +00:00
Thiemo Kreuz ac0630edd1 Add all missing PHPDoc comments
Change-Id: I4bf77867209e8aef524707b02363ae0ff7ca1f2a
2020-09-09 17:05:54 +02:00
libraryupgrader 246e14487b build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
The following sniffs now pass and were enabled:
* PSR12.Properties.ConstantVisibility.NotFound

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

Change-Id: I4dfbfd034a15cec9a107d20df9289ea47ab4a377
2020-05-30 08:01:36 +00:00
libraryupgrader 9a41a95389 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I8846de470461b4887dbc1e33653c8cdec8839366
2020-01-14 12:46:52 +00:00
James D. Forrester c88aed986c build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I39190ff2056c24184f128eba71d619fc748b0ca5
2019-10-11 12:04:42 -07:00
libraryupgrader 532795aeb0 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.MissingCovers.MissingCovers

Change-Id: I1a1589f98159dff69d73ce42ffd7f8dd68ecd806
2018-05-26 06:43:24 +00:00
libraryupgrader 0f6fd809e6 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I0968e177443895f38bb8caf1d2cb39acccf83f83
2018-03-29 06:04:51 +00:00
libraryupgrader c9e62404e0 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.MissingCovers.MissingCovers

Change-Id: Ie2a21620cafc287d42b4c7a8b9800fb3850cc3e5
2018-02-15 14:32:25 +00:00
Fomafix 84ef237bde Rename PHP files to match class names
This avoids the exclusion of the rule
MediaWiki.Files.ClassMatchesFilename.NotMatch in .phpcs.xml.

Change-Id: Ifd7f5f59097c6dedc19f031baaef538023a33336
2017-12-15 23:58:46 +01:00
libraryupgrader e5defd10aa build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I3ed1aca485facfc7c7621021ef0d016b77b3039b
2017-10-21 04:30:55 +00:00
Renamed from phpcs.xml (Browse further)