aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/Validator/SubmoduleDefTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2022-02-16 17:43:43 +0000
committerKrinkle <krinkle@fastmail.com>2022-02-18 18:32:05 +0000
commit8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be (patch)
tree562870515abca9923702fbd4ff394a69d0c19667 /tests/phpunit/includes/api/Validator/SubmoduleDefTest.php
parent38467129b8c14acded3c3a5528c51e8f4641f25f (diff)
downloadmediawikicore-8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be.tar.gz
mediawikicore-8d406bbcd69cb50b110bd3fb0d0c9878e3b0b3be.zip
phpcs: Disable `Generic.Files.LineLength` for test files
There is a common and reasonable need for longer lines in tests. The nudge for shorter lines doesn't seem valuable here. The natural breaks will likely still fall in 80-100 given the enforced practice for non-test code, e.g. whether through habit, or 80-100 column markers in text editors, or the finite width of diff and code review interfaces. Change-Id: I879479e13551789a67624ce66f0946d2f185e6ee
Diffstat (limited to 'tests/phpunit/includes/api/Validator/SubmoduleDefTest.php')
-rw-r--r--tests/phpunit/includes/api/Validator/SubmoduleDefTest.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/Validator/SubmoduleDefTest.php b/tests/phpunit/includes/api/Validator/SubmoduleDefTest.php
index da111529f224..6f97a93cf256 100644
--- a/tests/phpunit/includes/api/Validator/SubmoduleDefTest.php
+++ b/tests/phpunit/includes/api/Validator/SubmoduleDefTest.php
@@ -249,7 +249,6 @@ class SubmoduleDefTest extends TypeDefTestCase {
'internalvalues' => [ 'depint', 'int' ],
],
[
- // phpcs:ignore Generic.Files.LineLength.TooLong
ParamValidator::PARAM_TYPE => '<message key="paramvalidator-help-type-enum"><text>1</text><list listType="comma"><text>[[Special:ApiHelp/testmod+mod1|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;mod1&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+mod2|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;mod2&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+recurse|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;recurse&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+dep|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot; class=&quot;apihelp-deprecated-value&quot;&gt;dep&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+int|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot; class=&quot;apihelp-internal-value&quot;&gt;int&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+depint|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot; class=&quot;apihelp-deprecated-value apihelp-internal-value&quot;&gt;depint&lt;/span&gt;]]</text></list><num>6</num></message>',
ParamValidator::PARAM_ISMULTI => null,
],
@@ -277,7 +276,6 @@ class SubmoduleDefTest extends TypeDefTestCase {
'deprecatedvalues' => [ 'xyz' ],
],
[
- // phpcs:ignore Generic.Files.LineLength.TooLong
ParamValidator::PARAM_TYPE => '<message key="paramvalidator-help-type-enum"><text>2</text><list listType="comma"><text>[[Special:ApiHelp/testmod+mod3|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;mod3&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+mod4|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;mod4&lt;/span&gt;]]</text><text>[[Special:ApiHelp/testmod+dep|&lt;span dir=&quot;ltr&quot; lang=&quot;en&quot; class=&quot;apihelp-deprecated-value&quot;&gt;xyz&lt;/span&gt;]]</text></list><num>3</num></message>',
ParamValidator::PARAM_ISMULTI => null,
],