build: Move config to phpcs.xml and require php 5.3.3

* Reformat without all the spurious spaces.
* Update php requirement to 5.3.3 to match MediaWiki core and
  other Wikimedia libraries.
* Update php-parallel-lint to v0.9.
* Move phpcs config to a separate file.

Change-Id: I30895c87dd082dfae0a1b95237d5619ae89fa6fe
This commit is contained in:
Timo Tijhof 2015-07-06 13:28:54 +01:00
parent 95907042a5
commit eb6d66a22d
2 changed files with 24 additions and 17 deletions

View file

@ -1,45 +1,45 @@
{
"name" : "mediawiki/vector-skin",
"type" : "mediawiki-skin",
"name": "mediawiki/vector-skin",
"type": "mediawiki-skin",
"description": "Modern version of the MonoBook skin",
"keywords" : [
"keywords": [
"wiki",
"MediaWiki",
"skin"
],
"homepage" : "https://www.mediawiki.org/wiki/Skin:Vector",
"license" : "GPL-2.0+",
"authors" : [
"homepage": "https://www.mediawiki.org/wiki/Skin:Vector",
"license": "GPL-2.0+",
"authors": [
{
"name" : "Trevor Parscal"
"name": "Trevor Parscal"
},
{
"name" : "Roan Kattouw"
"name": "Roan Kattouw"
}
],
"support" : {
"wiki" : "https://www.mediawiki.org/wiki/Skin:Vector",
"forum" : "https://www.mediawiki.org/wiki/Skin_talk:Vector",
"support": {
"wiki": "https://www.mediawiki.org/wiki/Skin:Vector",
"forum": "https://www.mediawiki.org/wiki/Skin_talk:Vector",
"source": "https://git.wikimedia.org/summary/mediawiki%2Fskins%2FVector",
"irc" : "irc://irc.freenode.org/mediawiki"
"irc": "irc://irc.freenode.org/mediawiki"
},
"require" : {
"php" : ">=5.3.2",
"require": {
"php": ">=5.3.3",
"composer/installers": ">1.0.12"
},
"extra" : {
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.8.*",
"jakub-onderka/php-parallel-lint": "0.9.*",
"mediawiki/mediawiki-codesniffer": "0.3.0"
},
"scripts": {
"test": [
"parallel-lint . --exclude vendor",
"phpcs --standard=vendor/mediawiki/mediawiki-codesniffer/MediaWiki --extensions=php,php5,inc --ignore=vendor -p ."
"phpcs -p"
]
}

7
phpcs.xml Normal file
View file

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
<file>.</file>
<arg name="extensions" value="php"/>
<exclude-pattern>vendor</exclude-pattern>
</ruleset>