Skip to content

Commit

Permalink
Install and configure PHPCS for PSR12.
Browse files Browse the repository at this point in the history
No PER standard as deault available.
See PHPCSStandards/PHP_CodeSniffer/issues/29
  • Loading branch information
AlexanderAllen committed Mar 7, 2024
1 parent 01ca4cb commit 8fb5cf8
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"myclabs/php-enum": "^1.8",
"cebe/php-openapi": "^1.7",
"nette/neon":"^3.4",
"nette/php-generator":"^4.1"
"nette/php-generator":"^4.1",
"squizlabs/php_codesniffer": "^3.9"
}
}
82 changes: 81 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<ruleset name="Pannetone">
<description>Coding standard for Pannetone</description>

<arg name="extensions" value="php,inc" />
<arg name="report" value="summary"/>
<arg name="colors"/>
<arg value="sp"/>
<ini name="memory_limit" value="128M"/>

<autoload>./vendor/autoload.php</autoload>

<rule ref="PSR12" />

<exclude-pattern>*/vendor/*</exclude-pattern>

<file>./src</file>
<file>./tests</file>
</ruleset>

0 comments on commit 8fb5cf8

Please sign in to comment.