-
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
Changes from 1 commit
c8b859c
7029586
dab1d27
acc7fb6
d92acbe
b43cb2e
6e0f8e9
be7daa2
49c9255
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,16 @@ | |
|
||
set -e $DRUPAL_TI_DEBUG | ||
|
||
ARGS=( $DRUPAL_TI_PHPCS_ARGS ) | ||
if [[ -n $DRUPAL_TI_PHPCS_ARGS ]]; then | ||
ARGS=( $DRUPAL_TI_PHPCS_ARGS ) | ||
else | ||
ARGS=( | ||
"--colors" | ||
"--standard=Drupal,DrupalPractice" | ||
"--extensions=php,module,inc,install,test,profile,theme,css,info,txt,md" | ||
"--ignore=node_modules,bower_components,vendor" | ||
"${TRAVIS_BUILD_DIR}" | ||
) | ||
fi | ||
|
||
$HOME/.composer/vendor/bin/phpcs "${ARGS[@]}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about also using phpcsp (Code Sniffer Drupal Practice) ?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not familiar with the I made a couple of modifications to provide default arguments and to make it easier to invoke |
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