Skip to content

Commit

Permalink
PB-35433 Fixes up phpcs config to allow per file fixing in IDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
mscherer authored and dereuromark committed Sep 25, 2024
1 parent efe8cbd commit d1a757b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@
"@test",
"@cs-check"
],
"cs-check": "phpcs -d memory_limit=512M --colors -p --ignore=*.js,*/templates/* ./src ./tests ./plugins",
"cs-fix": "phpcbf -d memory_limit=512M --colors --ignore=*.js,*/templates/* ./src ./tests ./plugins",
"cs-check": "phpcs -d memory_limit=512M --colors -p",
"cs-fix": "phpcbf -d memory_limit=512M --colors -p",
"install-dev": [
"@composer install",
"npm install",
Expand Down
10 changes: 9 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<?xml version="1.0"?>
<ruleset name="App">
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer"/>

<file>src/</file>
<file>tests/</file>
<file>plugins/</file>

<exclude-pattern>/templates/</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>

<rule ref="CakePHP"/>

<rule ref="Generic.Formatting.SpaceAfterNot">
<properties>
<property name="spacing" value="0" />
<property name="spacing" value="0"/>
</properties>
</rule>
</ruleset>

0 comments on commit d1a757b

Please sign in to comment.