Skip to content

How do I pass options to the phpcs linter? #1499

Answered by dafeder
dafeder asked this question in Q&A
Discussion options

You must be logged in to vote

OK what I should have tried first was just putting phpcs.xml in the project root - seeing the cwd property in the output file made it click that even though it's targeting specific files from the diff, having the xml file in the project root works. I think this is fine, maybe should just be included in the documentation for using with php projects (which is see is still a WIP). It also reflects changes when I make them (probably not a surprise).

Now a new problem: It only has the built-in standards that come with PHPCS out of the box. In codeclimate, a number of additional standards were supported. For my project I would need some way to at least pull in Drupal and DrupalPractice to swap …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dafeder
Comment options

@brynary
Comment options

@dafeder
Comment options

Answer selected by dafeder
@dafeder
Comment options

@brynary
Comment options

@dafeder
Comment options

@dafeder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants