Skip to content

Commit

Permalink
Update the Wikibase CodeSniffer rule set to version 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemowmde committed Feb 14, 2018
1 parent 46d0b09 commit d902764
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions phpcs.xml → .phpcs.xml
@@ -1,9 +1,7 @@
<?xml version="1.0"?>
<ruleset name="WikibaseDataModelServices">
<ruleset>
<rule ref="vendor/wikibase/wikibase-codesniffer/Wikibase" />

<rule ref="Generic.CodeAnalysis" />

<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
Expand All @@ -14,7 +12,7 @@
<rule ref="Generic.Metrics.CyclomaticComplexity" />
<rule ref="Generic.Metrics.NestingLevel" />

<rule ref="PSR1" />
<rule ref="PSR1.Files.SideEffects" />
<rule ref="Squiz.Arrays.ArrayBracketSpacing" />
<rule ref="Squiz.Strings.DoubleQuoteUsage">
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar" />
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -29,7 +29,7 @@
"require-dev": {
"phpmd/phpmd": "~2.3",
"phpunit/phpunit": "~4.8",
"wikibase/wikibase-codesniffer": "^0.1.0"
"wikibase/wikibase-codesniffer": "^0.3.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Diff/Internal/AliasGroupListPatcherTest.php
Expand Up @@ -220,7 +220,7 @@ public function providePatchAliasGroupList() {
new AliasGroupList( [
new AliasGroup( 'en', [ 'foo', 'bar' ] ),
new AliasGroup( 'de', [ 'foo', 'baz' ] ),
new AliasGroup( 'nl', [ 'bar', 'baz' ] )
new AliasGroup( 'nl', [ 'bar', 'baz' ] ),
] ),
new Diff( [
'en' => new Diff( [ new DiffOpRemove( 'foo' ), new DiffOpAdd( 'baz' ) ] ),
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/EntityId/EntityIdComposerTest.php
Expand Up @@ -12,7 +12,7 @@
/**
* @covers Wikibase\DataModel\Services\EntityId\EntityIdComposer
*
* @licence GNU GPL v2+
* @license GPL-2.0-or-later
* @author Thiemo Kreuz
*/
class EntityIdComposerTest extends PHPUnit_Framework_TestCase {
Expand Down

0 comments on commit d902764

Please sign in to comment.