Update mediawiki/codesniffer to 0.7.2

Short array syntax will be used in follow ups
to keep this patch set small


Change-Id: Ibfb09fb93a827d2c23060e79d287c963fe149770
This commit is contained in:
Umherirrender 2017-06-13 12:20:31 +02:00
parent c2fbb735a1
commit 62d8ae19d3
3 changed files with 10 additions and 7 deletions

View file

@ -27,7 +27,7 @@ class SyntaxHighlightAce
'ABC' => [], 'ABC' => [],
'ActionScript' => [ 'actionscript', 'actionscript3' ], 'ActionScript' => [ 'actionscript', 'actionscript3' ],
'ADA' => [ 'ada', 'ada2005', 'ada95' ], 'ADA' => [ 'ada', 'ada2005', 'ada95' ],
'Apache_Conf' => [ 'apache', 'apacheconf', 'aconf'], 'Apache_Conf' => [ 'apache', 'apacheconf', 'aconf' ],
'AsciiDoc' => [], 'AsciiDoc' => [],
'Assembly_x86' => [ 'nasm' ], 'Assembly_x86' => [ 'nasm' ],
'AutoHotKey' => [ 'autohotkey', 'ah' ], 'AutoHotKey' => [ 'autohotkey', 'ah' ],
@ -45,7 +45,7 @@ class SyntaxHighlightAce
'D' => [ 'd' ], 'D' => [ 'd' ],
'Dart' => [ 'dart' ], 'Dart' => [ 'dart' ],
'Diff' => [ 'diff', 'udiff' ], 'Diff' => [ 'diff', 'udiff' ],
'Django' => [ 'django', 'html+django', 'html+jinja', 'htmldjango'], 'Django' => [ 'django', 'html+django', 'html+jinja', 'htmldjango' ],
'Dockerfile' => [ 'Dockerfile', 'docker' ], 'Dockerfile' => [ 'Dockerfile', 'docker' ],
'Dot' => [], 'Dot' => [],
'Dummy' => [], 'Dummy' => [],
@ -111,7 +111,7 @@ class SyntaxHighlightAce
'Perl' => [ 'perl', 'pl', 'perl6', 'pl6' ], 'Perl' => [ 'perl', 'pl', 'perl6', 'pl6' ],
'pgSQL' => [ 'postgresql', 'postgres' ], 'pgSQL' => [ 'postgresql', 'postgres' ],
'PHP' => [ 'php', 'php3', 'php4', 'php5', 'html+php' ], 'PHP' => [ 'php', 'php3', 'php4', 'php5', 'html+php' ],
'Powershell' => [ 'powershell', 'posh', 'ps1', 'psm1'], 'Powershell' => [ 'powershell', 'posh', 'ps1', 'psm1' ],
'Praat' => [ 'praat' ], 'Praat' => [ 'praat' ],
'Prolog' => [ 'prolog' ], 'Prolog' => [ 'prolog' ],
'Properties' => [ 'properties', 'jproperties' ], 'Properties' => [ 'properties', 'jproperties' ],

View file

@ -6,7 +6,7 @@
}, },
"require-dev": { "require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2", "jakub-onderka/php-parallel-lint": "0.9.2",
"mediawiki/mediawiki-codesniffer": "0.5.1", "mediawiki/mediawiki-codesniffer": "0.7.2",
"jakub-onderka/php-console-highlighter": "0.3.2" "jakub-onderka/php-console-highlighter": "0.3.2"
}, },
"license": "GPL-2.0+", "license": "GPL-2.0+",
@ -34,7 +34,7 @@
"scripts": { "scripts": {
"fix": "phpcbf", "fix": "phpcbf",
"test": [ "test": [
"parallel-lint . --exclude vendor", "parallel-lint . --exclude vendor --exclude node_modules",
"phpcs -p -s" "phpcs -p -s"
] ]
} }

View file

@ -1,8 +1,11 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Arrays.DisallowLongArraySyntax.Found"/>
</rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,php5,inc"/> <arg name="extensions" value="php,php5,inc"/>
<arg name="encoding" value="utf8"/> <arg name="encoding" value="UTF-8"/>
<exclude-pattern>vendor</exclude-pattern> <exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>node_modules</exclude-pattern>
</ruleset> </ruleset>