Command line tool to apply suggestions provided by PHP Codesniffer -


i looking command line tool applies code formatting suggestions provided php codesniffer code base.

there cool tools php codesniffer plugin eclipse in use case need batch process rather manual task.

while there isn't directly fix issues reported php_codesniffer, there unrelated project tries fix issues rather report on them. in particular, tries make code conform new psr-1 , psr-2 standards, php_codesniffer adding support @ moment.

it's not going fix everything, close going fixing issues: https://github.com/fabpot/php-cs-fixer

however, recommend not running batch fixing tools on codebase. if want code conform coding standard, need learn , fix errors on time. there no reason fix in 1 hit, , doing automated tool is, in experience, best way break codebase.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -