-
Notifications
You must be signed in to change notification settings - Fork 7
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
Let's get PHP_CodeSniffer working with Backdrop #10
Comments
The above way was an attempt to get it working without Composer, however this might need to be resolved together with #3. |
According to https://www.drupal.org/project/coder/issues/2809335 Codesniffer 3 is not supported, so I downgraded back to PHP_CodeSniffer-2.9.1:
the same command
|
I'm adding PHPCS code reviews for my Backdrop contrib projects using github actions. I was able to get results only by using PHP 5.6, and version 1.5.6 of PHPCS. I ran into all the same problems you hit @alanmels and downgrading PHPCS to earlier versions was the answer each time. I think Drupal 7 is on version 2 (to get PHP 7.3 support) and Drupal 8 is on version 3 now. See Related: https://www.drupal.org/project/coder/issues/2863898 |
Thank you, Jen, for your input. I think your finding needs to be reflected on Backdrop's UI so users avoid hitting the same problems. |
I also think we should see if we can pull in the Drupal changes to get up to date :) I'll create a separate issue.
edit: #12 Update to a newer version of PHP_CodeSniffer
|
I just added the phpcs.phar with a direct download and was able to get it working with VSCode without any composer. |
I am trying to get PHP_CodeSniffer working with Backdrop. So far I've got it installed on OS level by taking the following steps:
and now the both the
phpcs -i
andphpcbf -i
commands output:However, Backdrop is not picking up PHP_CodeSniffer and the status page still shows:
Also running simple
phpcs --standard=Backdrop -e
command outputs the error:Any further hints would be appreciated on how to get PHP_CodeSniffer working with Backdrop.
The text was updated successfully, but these errors were encountered: