Add more lint reviews
sjparkinson opened this issue · 9 comments
-
.less
with twitter/recess -
.php
with fabpot/PHP-CS-Fixer -
.php
with sebastianbergmann/phpcpd -
.php
with sebastianbergmann/phpdcd -
.json
with seld/jsonlint -
*
trailing whitespace
Done
-
.php
with squizlabs/PHP_CodeSniffer -
composer.lock
with sensiolabs/security-checker
@sjparkinson
Maybe worth to add .php with https://github.com/fabpot/PHP-CS-Fixer ?
Ah interesting, thanks for the link. I'll have a look at adding it using the dry-run argument.
@sjparkinson you may be intrested with --diff
option as well
@sjparkinson I see you add some more tools, so maybe add them too:
sebastian/phpcpd
sebastian/phpdcd
?
👍 they look very useful to me
Here is my complete composer.json for static analysis:
{
"require": {
"fabpot/php-cs-fixer": "@stable",
"pdepend/pdepend": "@stable",
"phploc/phploc": "@stable",
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "@stable",
"sebastian/phpcpd": "@stable",
"sebastian/phpdcd": "@stable",
"sensiolabs/security-checker": "@stable",
"squizlabs/php_codesniffer": "@stable",
"wimg/php-compatibility": "@stable"
}
}
Maybe you will want to add sth more, like security-checker (client of free webservice only!) or php-compatibility (which is very usefull during changing php version or developing for version not used to)
maybe add https://github.com/Seldaek/jsonlint as well ?
any news on that?
any news on that?
Nope, I haven't been able to dedicate much time to projects lately. I'm more than happy to accept PR's for any of these!