-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support for phpcs #111
Conversation
runners/phpcs/script.sh
Outdated
|
||
ARGS=( $DRUPAL_TI_PHPCS_ARGS ) | ||
|
||
$HOME/.composer/vendor/bin/phpcs "${ARGS[@]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about also using phpcsp (Code Sniffer Drupal Practice) ?
ARGS=( $DRUPAL_TI_PHPCSP_ARGS )
$HOME/.composer/vendor/bin/phpcsp "${ARGS[@]}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with the phpcsp
binary. Is there something I can read to learn about it?
I made a couple of modifications to provide default arguments and to make it easier to invoke drupal/coder
standards.
ARGS=( | ||
"--colors" | ||
"--standard=Drupal,DrupalPractice" | ||
"--extensions=php,module,inc,install,test,profile,theme,css,info,txt,md" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure you should lint css files :D
Seems this needs a little bit more work to be ready :) |
Closing this as outdated. Thanks for the consideration and feedback for the PR. |
Addresses #12 (plus one typo).
Let me know any changes you'd like to see!