nunomaduro / phpinsights

🔰 Instant PHP quality checks from your console
https://phpinsights.com
MIT License
5.32k stars 283 forks source link

Getting different reports with and without `--fix` #643

Open d8vjork opened 1 year ago

d8vjork commented 1 year ago
Q A
Bug report? yes
Feature request? no
Library version 2.8.0

I think from the reports, the only difference is maybe the one with --fix is excluding this "Object operator indent" (PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff) rule for some reason... so then it thinks code style is at 100% but its not...

With fixers

image

Here we can see, this "Object operator indent" is being applied but really without any modification being applied...

image

Without fixers

Still reports these "Object operator indent"

image

And this is the config I use: https://gist.github.com/d8vjork/6ee0c48c8f48b06cf8bd22b429af95a7

d8vjork commented 1 year ago

Can this actually be a false-positive thingy?