rtCamp/action-phpcs-code-review

Use local phpcs.xml

obenland opened this issue · 3 comments

The docs mention

If your git repo have a file named phpcs.xml in the root of the repository, then that will take precedence.

That does not seem to be the case.
See Automattic/starter-page-templates#14 where we add a phpcs.xml file in the root of the repo, but that doesn't get picked up.

Do you have any advice?

but that doesn't get picked up.

What does not get picked up? Can you please elaborate on the issue that you are facing.
What is your expectation? What did you define in phpcs.xml which is not getting respected?

The phpcs.xml in the root of our repository doesn't seem to get picked up.

I'd expect this line to read something like

phpcs_standard="--phpcs-standard=$GITHUB_WORKSPACE/$phpcsfile"

It is the same file, please check this line. The $GITHUB_WORKSPACE files are copied to $RTBOT_WORKSPACE.