This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from wmde/phpcs
Update PHPCS config, run PHPCS checks as a part of the CI build
- Loading branch information
Showing
4 changed files
with
12 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ cd - | |
|
||
fi | ||
|
||
composer test | ||
composer ci | ||
./node_modules/.bin/eslint . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="DataValuesDataTypes"> | ||
<!-- See https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/MediaWiki/ruleset.xml --> | ||
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki" /> | ||
<rule ref="vendor/wikibase/wikibase-codesniffer/Wikibase" /> | ||
|
||
<rule ref="Generic.ControlStructures" /> | ||
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" /> | ||
|
||
<rule ref="PSR1" /> | ||
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"> | ||
<!-- Exclude test methods like "testGivenInvalidInput_methodThrowsException". --> | ||
<exclude-pattern>tests*Test*\.php</exclude-pattern> | ||
</rule> | ||
|
||
<rule ref="PSR2.Files" /> | ||
|
||
<rule ref="Squiz.Classes.DuplicateProperty" /> | ||
<rule ref="Squiz.Classes.SelfMemberReference" /> | ||
<rule ref="Squiz.ControlStructures.ControlSignature" /> | ||
<rule ref="Squiz.Functions.FunctionDuplicateArgument" /> | ||
<rule ref="Squiz.Functions.GlobalFunction" /> | ||
<rule ref="Squiz.Scope" /> | ||
<rule ref="Squiz.WhiteSpace.FunctionSpacing"> | ||
<properties> | ||
<property name="spacing" value="1" /> | ||
</properties> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.OperatorSpacing"> | ||
<properties> | ||
<property name="ignoreNewlines" value="true" /> | ||
</properties> | ||
</rule> | ||
|
||
<arg name="extensions" value="php" /> | ||
<arg name="encoding" value="utf8" /> | ||
<file>.</file> | ||
</ruleset> |