3 ms·
Why do these tools always force me to upload my source? The only time I want to use something like this is when I'm handed a hot pile of legacy code that looks
by docksider 10y ago
Why do these tools always force me to upload my source? The only time I want to use something like this is when I'm handed a hot pile of legacy code that looks like it came out of a blender. And that code I'm not allowed to give anyone, often will it contain a ton of SQL injections that can be automatically found.
To me this is useful but absolutely unusable
- lucideer 10y agoWhile I can't see what libraries are behind this tool, it's named "csfixer", which is the name of a widely used offline tool for PHP[1] [1] https://packagist.org/packages/friendsofphp/php-cs-fixer https://packagist.org/packages/friendsofphp/php-cs-fixer
- labrador 10y agoCodesniffer also has a decent checker.[1] Actually, the only way I found to fix legacy code for good is to use the tokenizer and an open source parser to transform (with code you write) those pesky old bad habits. This one is ok. [2] [1] https://github.com/squizlabs/PHP_CodeSniffer https://github.com/squizlabs/PHP_CodeSniffer [2] https://github.com/nikic/PHP-Parser https://github.com/nikic/PHP-Parser
- Theodores 10y agoI have something in my bash aliases to tidy my code psr style, however, if I am not on my machine then an online cut and paste is potentially useful. I use such online tools for tidying html, svg and more. Glad to have this on the roster.
- dannie2 10y agoThat's right. Sometimes we need to do it online.