Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/87540


Change subject: Add @codingStandardsIgnoreFile in alias files
......................................................................

Add @codingStandardsIgnoreFile in alias files

PH CodeSniffer raises a warning when lines are over 100 characters and an
error when a line is over 120 characters. Files with special page aliases
are generated using the magic-export.php script of the Translate extension
and can be "edited" using Special:AdvancedTranslate. There is no need to
have these files adhere to the convention. To not require any changes to
the PHP CodeSniffer configuration, Antoine Musso advised to use this
method to not raise unneeded warnings and errors.

Change-Id: Ic5f0dcfbc0f9fea1189a0bf6db348e85651948cf
---
M scripts/magic-export.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/40/87540/1

diff --git a/scripts/magic-export.php b/scripts/magic-export.php
index a041164..926fbfa 100644
--- a/scripts/magic-export.php
+++ b/scripts/magic-export.php
@@ -143,6 +143,7 @@
                                case 'special':
                                        fwrite( $handle, <<<PHP
 
+// @codingStandardsIgnoreFile
 
 \$specialPageAliases = array();
 PHP

-- 
To view, visit https://gerrit.wikimedia.org/r/87540
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic5f0dcfbc0f9fea1189a0bf6db348e85651948cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to