mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-18 11:10:29 +00:00
Update mediawiki/mediawiki-codesniffer requirement from 41.0.0 to 45.0.0 (#134)
* Update mediawiki/mediawiki-codesniffer requirement from 41.0.0 to 45.0.0 Updates the requirements on [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version. - [Changelog](https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md) - [Commits](https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v41.0.0...v45.0.0) --- updated-dependencies: - dependency-name: mediawiki/mediawiki-codesniffer dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * Add * CI: lint code to MediaWiki standards Check commit and GitHub actions for more details --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CosmicAlpha <cosmic.alpha24@gmail.com> Co-authored-by: github-actions <github-actions@users.noreply.github.com>
This commit is contained in:
parent
7b5746da0b
commit
d7783a1760
|
@ -3,7 +3,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
"mediawiki/mediawiki-codesniffer": "45.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.12.1",
|
"mediawiki/mediawiki-phan-config": "0.12.1",
|
||||||
"mediawiki/minus-x": "1.1.3",
|
"mediawiki/minus-x": "1.1.3",
|
||||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||||
|
@ -21,5 +21,10 @@
|
||||||
],
|
],
|
||||||
"phan": "phan -d . --long-progress-bar",
|
"phan": "phan -d . --long-progress-bar",
|
||||||
"phpcs": "phpcs -sp --cache"
|
"phpcs": "phpcs -sp --cache"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"allow-plugins": {
|
||||||
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,9 +221,9 @@ class InfoboxParamsValidator {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( self::$colorNamesFlipped[$color] ) ||
|
if ( isset( self::$colorNamesFlipped[$color] ) ||
|
||||||
preg_match( self::REGEX_RGB, $color ) ||
|
preg_match( self::REGEX_RGB, $color ) ||
|
||||||
preg_match( self::REGEX_RGBA, $color ) ||
|
preg_match( self::REGEX_RGBA, $color ) ||
|
||||||
preg_match( self::REGEX_HSL, $color ) ||
|
preg_match( self::REGEX_HSL, $color ) ||
|
||||||
preg_match( self::REGEX_HSLA, $color )
|
preg_match( self::REGEX_HSLA, $color )
|
||||||
) {
|
) {
|
||||||
return $color;
|
return $color;
|
||||||
|
|
Loading…
Reference in a new issue