Skip to content

Commit

Permalink
Merge pull request GOCDB#363 from tofu-rocketry/php-static-anlysis
Browse files Browse the repository at this point in the history
Add basic PHP CodeSniffer rule set
  • Loading branch information
gregcorbett authored Jul 4, 2022
2 parents 382c3cb + 4d17a65 commit d5a28db
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="GOCDB rule set for PHP CodeSniffer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>GOCDb rule set for PHP CodeSniffer.</description>

<!-- Include the PSR-12 standard. The CodeSniffer ruleset for PSR-12 includes PSR-1.
Published PSR-12 standard:
https://www.php-fig.org/psr/psr-12/
Ruleset definition here:
https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/PSR12/ruleset.xml
-->
<rule ref="PSR12"/>

</ruleset>

0 comments on commit d5a28db

Please sign in to comment.