Closed kooliahmd closed 7 years ago
After some debugging , I have found this : This issue is related to how patch cmd is called, for some patch versions (for instance: GNU patch 2.7.1) only relative paths not containing .. are accepted.
I fixed this by prefixing patch call with cd / &&
cd / && patch -p0 -ui \"$diffFile\" instead of: patch -p0 -ui \"$diffFile\"
(File /vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php , Line : 198)
@Snake-Tn thanks for your investigation. I suppose, we can close this issue?
After I run phpcs it shows several fixable warnings. Now when i run phpcbf, most of the warnings remain, it's like phpcbf didn't correct any thing.
On the standard output, I get this from phpcbf:
Why phpcbf is considering most of files as "potentially dangerous" ? How can I force it to do the correction ?