Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Add support for phpcs #111

wants to merge 9 commits into from

Conversation

nhoag
Copy link

@nhoag nhoag commented Apr 18, 2018

Addresses #12 (plus one typo).

Let me know any changes you'd like to see!

@coveralls
Copy link

coveralls commented Apr 18, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 49c9255 on nhoag:add_phpcs into 2fc1b70 on LionsAd:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6e0f8e9 on nhoag:add_phpcs into 2fc1b70 on LionsAd:master.


ARGS=( $DRUPAL_TI_PHPCS_ARGS )

$HOME/.composer/vendor/bin/phpcs "${ARGS[@]}"
Copy link
Collaborator

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[@]}"

Copy link
Author

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"
Copy link
Collaborator

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

@LionsAd
Copy link
Owner

LionsAd commented Jan 17, 2019

Seems this needs a little bit more work to be ready :)

@nhoag
Copy link
Author

nhoag commented Jan 8, 2023

Closing this as outdated. Thanks for the consideration and feedback for the PR.

@nhoag nhoag closed this by deleting the head repository Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants