Commit graph

11 commits

Author SHA1 Message Date
Umherirrender 2cc29f25a0 Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation and to remove the exclusion of the
sniff.
The activated sniff avoids that new code is missing doc-typehints or
real-typehints.

Adding a @var type to RSSData->items triggers a SecurityCheck-XSS issue by phan, but all is dealing with wikitext when building the items, so that looks like a false positive

Change-Id: I4f1d17372d62f02fe7447f5bf5e75b9471d7a338
2024-09-14 07:41:14 +00:00
libraryupgrader cf14c7761d build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic

Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).
* Removed globals `mw`, `OO`, included via `wikimedia/mediawiki` profile (T262222).
* Dropped the emtpy global definition in .eslintrc.json.

Change-Id: I99fb7d7a3a1f26c4d3a6db9270b73469f9cb1e96
2020-11-04 08:49:11 +00:00
libraryupgrader f57c815f32 build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: Id477a8ebec777ca389e43e1314e7a4c6989c0fd5
2020-09-25 08:13:12 +00:00
libraryupgrader 03c14c837f 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: I8512d1e1f1cf8c6b35800639f543b8e576502c7b
2020-01-14 11:09:52 +00:00
Sam Wilson 96390e0876 Remove code sniffer exclusions and update other dependencies
Remove the two PHP Code Sniffer exclusions and fix the code to
pass (including clarifying code docs). Also update two dev
dependencies (which require no changes).

Change-Id: I953489b6b210dbc0bcbcbe57c574039a4ce0255c
2019-01-07 10:33:26 -08:00
libraryupgrader 172f99c53d build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic

Change-Id: I4784b14fb5a1558227c66217db0c25a709c73927
2018-11-16 08:21:39 +00:00
Umherirrender e5078b53a4 Add method scope visibility
Change-Id: I431d7c43ea288d8fbb8da7cd9ff2f718918fcec4
2018-11-02 11:23:45 +01:00
libraryupgrader e0d79c80b0 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Ic4069c1d358456f646eb4cf1933d424328aaafa5
2018-03-29 05:21:59 +00:00
libraryupgrader 1240f9be6a build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Squiz.Scope.MethodScope.Missing

The following sniffs now pass and were enabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: I5ed0dc8974bd4e2c0202d7bdcfdb42242bd25ae9
2017-12-30 02:19:48 +00:00
Umherirrender 901329cb18 Move RSSUtils to own file
Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass

Change-Id: If3313f598589a48b7ad5bae65aed8536de48c0e8
2017-12-21 22:14:55 +01:00
libraryupgrader 64ed018673 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: Ia7be2a5ac7f9e0ddb37d09e760c01410ea08231a
2017-10-21 04:29:16 +00:00
Renamed from phpcs.xml (Browse further)