-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHPCS: add a PHPCS configuration file containing all the common command-line parameters. This file will be automatically picked up by PHPCS and can be overruled locally by a `[.]phpcs.xml` file. Includes downgrading the cyclomatic complexity error to a warning. * Ant: remove the configuration CLI arguments which are now contained in the `phpcs.xml.dist` file from the `build.xml` task configuration. * Ant: add a CLI argument which will ignore CS warnings when determining the exit code, but will still _show_ warnings in the report. Using this will also allow for enabling `failonerror` for the build step. * Git: Add the `phpcs.xml.dist` file to the `.gitattributes` file to be ignored when packaging a release. * Git: Add the potential local overload files to the `.gitignore` file.
- Loading branch information
Showing
4 changed files
with
26 additions
and
4 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
.travis.yml export-ignore | ||
build.xml export-ignore | ||
phpunit.xml.dist export-ignore | ||
phpcs.xml.dist export-ignore |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
/composer.lock | ||
phpunit.xml | ||
.phpunit.result.cache | ||
.phpcs.xml | ||
phpcs.xml |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Jakub Onderka Coding Standard"> | ||
<description>A coding standard for Jakub Onderka's projects.</description> | ||
|
||
<file>./src/</file> | ||
|
||
<!-- Only check PHP files. --> | ||
<arg name="extensions" value="php"/> | ||
|
||
<!-- Show progress, show the error codes for each message (source). --> | ||
<arg value="ps"/> | ||
|
||
<!-- Strip the filepaths down to the relevant bit. --> | ||
<arg name="basepath" value="./"/> | ||
|
||
<rule ref="./vendor/php-parallel-lint/php-code-style/ruleset.xml"/> | ||
|
||
<rule ref="Generic.Metrics.CyclomaticComplexity.MaxExceeded"> | ||
<type>warning</type> | ||
</rule> | ||
</ruleset> |