-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan files being erroneously scanned #35
Comments
Please refer: #34 |
Thanks for making this issue, I'm getting the same problem:
Is there anything I can do to help troubleshoot or resolve this? |
I will be looking into this issue over the weekend or in the next week. Will loop you in by Monday or Tuesday with more details 🙂 |
@mrrobot47 Thank you! That is very much appreciated it. |
@mrrobot47 Sorry to bother you - I appreciate all the work you've done on this. I'm having problems with the workaround of ignoring the I want to use the
Disregard - I figured it out. The |
Sorry for replying late on this issue. I got caught up on other work and could not check on this. The issue of For now, I have added the option to skip sniffs using env var: Update your workflow file according to the latest release usage having the on: pull_request
name: Inspections
jobs:
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPCS inspection
uses: rtCamp/action-phpcs-code-review@v2.0.3
env:
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
SKIP_FOLDERS: "tests,.github"
PHPCS_SNIFFS_EXCLUDE: "WordPress.Files.FileName"
with:
args: "WordPress,WordPress-Core,WordPress-Docs" |
Sorry for the late response on this.
Is adding this required, or will the check still work if that doesn't exist in the action? I'm currently trying to track down an issue where the exclude patterns in the Possibly related, this is showing in the action output:
Likely because Will not having that defined affect the exclude rules in the |
First off, thank you for building this! This has been working great for me and is really helping my codebase stay up-to-par.
However, I am running into one reoccurring issue. About 1/4 of the time when this runs automatically after opening a pull request, I receive the following error:
"phpcs-scan-Ysewvc.php" -- As you might expect, the filename changes each time this occurs (characters after the second hyphen differ):
Is there a way to either ignore these phpcs scan files or fix the root cause of this issue?
For context, I have included my workflow file below:
The text was updated successfully, but these errors were encountered: