Open champsupertramp opened 8 months ago
For anyone running into a similar error: when using local config, the paths
setting is ignored.
This also includes default paths: '.'
!
You need to specify <file>
to be checked inside the phpcs.xml
, e.g.:
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress - doc comments" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
<description>WordPress project standards except for doc comment rules.</description>
<file>wp-content/themes/path-to-your-theme</file>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
</rule>
</ruleset>
Describe the bug
I'm getting the following error using the custom project rules:
ERROR: You must supply at least one file or directory to process.
Here's my phpcs.xml.dist:
.github/workflow/wpcs.xml:
Here's the Debug Logs from Github Action Workflow:
Steps to Reproduce
Please use the following files content:
Here's my phpcs.xml.dist:
.github/workflow/wpcs.xml:
Screenshots, screen recording, code snippet
No response
Environment information
Macbook Pro M2 MacOS Ventura 13.3.1
WordPress information
This is a private plugin that I'm trying to process.
Code of Conduct