2017 © Pedro Peláez
 

library phpspec-code-sniffer

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

image

kmcculloch/phpspec-code-sniffer

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

  • Thursday, April 26, 2018
  • by kmcculloch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 327 Installations
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

phpspec-code-sniffer

Very simple PHPSpec code sniffing, based on PSR1 and PSR2, (*1)

Kevin McCulloch p.kevin.mcculloch@gmail.com, (*2)

Purpose

I wrote this module so that I could easily toggle a phpcs standard that won't throw errors for PHPSpec's non-camel-case it_does_something() function naming convention. All it does is apply PSR1 and PSR2 while ignoring the camel-case function naming rule. Stupidly simple, really. I'd be open to expanding the ruleset if others find this useful., (*3)

Global Installation

If you have phpcs installed globally (which generally involves running composer global require squizlabs/php_codesniffer:~2.0 and adding ~/.composer/vendor/bin to your $PATH), you can add this ruleset like so:, (*4)

composer global require kmcculloch/phpspec-code-sniffer:1.x-dev

# Tell phpcs where to find the ruleset:
phpcs --config-set installed_paths ~/.composer/vendor/kmcculloch/phpspec-code-sniffer/

# Run the following and confirm that you can see "PHPSpec" in the list of
# installed standards:
phpcs -i

# Sniff your code:
phpcs --standard=PHPSpec ~/path/to/MyClassSpec.php

The Versions

26/04 2018

dev-master

9999999-dev

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

  Sources   Download

GPL-3.0+

The Requires

 

by Kevin McCulloch

code phpspec php_codesniffer standards sniffer

26/04 2018

v1.1.0

1.1.0.0

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

  Sources   Download

GPL-3.0+

The Requires

 

by Kevin McCulloch

code phpspec php_codesniffer standards sniffer

08/11 2016

v1.0.0

1.0.0.0

Very simple PHPSpec code sniffing, based on PSR1 and PSR2

  Sources   Download

GPL-3.0+

The Requires

 

by Kevin McCulloch

code phpspec php_codesniffer standards sniffer