-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Install coding standard as dev dependency and introduce project c…
…onfig
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/vendor | ||
/composer.lock | ||
/phpstan*.neon | ||
/.phpcs.xml | ||
/.phpcs-cache |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<config name="installed_paths" value="../../nepada/coding-standard/src"/><!-- relative path from PHPCS source location --> | ||
|
||
<arg value="ps"/><!-- show progress of the run, show sniff names --> | ||
<arg name="cache" value=".phpcs-cache"/> | ||
|
||
<arg name="extensions" value="php,phpt"/> | ||
<file>src</file> | ||
<file>tests</file> | ||
|
||
<rule ref="Nepada"> | ||
</rule> | ||
|
||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> | ||
<properties> | ||
<property name="ignoredAnnotationNames" type="array"> | ||
<element value="@testCase"/> | ||
<element value="@dataProvider"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<!-- special settings for tests and bootstrap --> | ||
<exclude-pattern>*/tests/temp/*</exclude-pattern> | ||
<rule ref="PSR1.Files.SideEffects"> | ||
<exclude-pattern>*.phpt</exclude-pattern> | ||
<exclude-pattern>*/bootstrap.php</exclude-pattern> | ||
</rule> | ||
</ruleset> |
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