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 a generic rule to run PHPCS against different coding standards #276

Merged
merged 1 commit into from Jul 31, 2015

Conversation

virtualtam
Copy link
Member

Relates to #95

Usage

  • list available standards
    $ ./vendor/bin/phpcs -i
  • run PHPCS against a given standard
    $ make PHPCS_<standard>

Examples

$ make PHPCS_PSR1
$ make PHPCS_Zend

As the target is generic (parametrizable), I chose a different naming style to avoid conflicts with the existing code_sniffer_<type> targets.

…andards

Relates to shaarli#95

Usage
 - list available standards
   $ ./vendor/bin/phpcs -i
 - run PHPCS against a given standard
   $ make PHPCS_<standard>

Examples
 $ make PHPCS_PSR1
 $ make PHPCS_Zend

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
@virtualtam virtualtam self-assigned this Jul 13, 2015
@virtualtam virtualtam modified the milestone: 0.7.0 Jul 30, 2015
virtualtam added a commit that referenced this pull request Jul 31, 2015
Add a generic rule to run PHPCS against different coding standards
@virtualtam virtualtam merged commit 96db105 into shaarli:master Jul 31, 2015
@virtualtam virtualtam deleted the tools/phpcs branch August 2, 2015 18:31
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.

None yet

1 participant