Skip to content

Commit

Permalink
Merge pull request #46 from tarosky/fumikito-patch-3
Browse files Browse the repository at this point in the history
Update phpcs.ruleset.xml
  • Loading branch information
fumikito committed Aug 2, 2024
2 parents d23a61d + ccf422b commit cbd1f0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions boilerplate/phpcs.ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
<exclude name="WordPress.DateTime.CurrentTimeTimestamp.RequestedUTC" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
</rule>

<rule ref="PHPCompatibility">
<config name="testVersion" value="7.4-"/>
</rule>


<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fi

# If composer.json exists, install dependencies.
if [ -f composer.json ]; then
composer require --dev phpunit/phpunit squizlabs/php_codesniffer wp-coding-standards/wpcs yoast/phpunit-polyfills phpcompatibility/php-compatibility dealerdirect/phpcodesniffer-composer-installer
composer require --dev phpunit/phpunit squizlabs/php_codesniffer wp-coding-standards/wpcs yoast/phpunit-polyfills dealerdirect/phpcodesniffer-composer-installer
fi

0 comments on commit cbd1f0e

Please sign in to comment.