Skip to content

Commit

Permalink
added phpcs.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
rsm0128 committed Oct 28, 2022
1 parent 5422c36 commit dda1480
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
logs
*.log
phpcs.xml

# file system junk
.DS_Store
28 changes: 28 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<ruleset name="Fuxt Backend">
<arg name="extensions" value="php" />
<arg name="colors" />
<arg name="parallel" value="16" />
<arg value="s" />

<!-- Lint all PHP files in the project directory by default. -->
<file>.</file>

<config name="testVersion" value="8.0-" /><!-- See the override in composer.json for the lint and lint-fix scripts. -->

<rule ref="WordPress-Core">
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
</rule>

<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="fuxt" />
</property>
</properties>
</rule>

<exclude-pattern>*/libs/*</exclude-pattern>
</ruleset>

0 comments on commit dda1480

Please sign in to comment.