Add php_code_sniffer config file

This commit is contained in:
Tony Murray
2016-08-10 15:16:21 -05:00
parent d14214cd8b
commit 0553fb6b5a
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
!/.editorconfig
!/.scrutinizer.yml
!/.travis.yml
!/.php_cs
!/.github/
# Others #

18
.php_cs Normal file
View File

@ -0,0 +1,18 @@
<?php
// PHP CS Fixer config file
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('html/includes/geshi')
->exclude('html/includes/jpgraph')
->exclude('html/includes/Slim')
->exclude('html/lib')
->exclude('lib')
->exclude('logs')
->exclude('mibs')
->exclude('rrd')
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->finder($finder);