Php_codesniffer: cli option to ignore (sym)links ?

Created on 30 Aug 2018  路  5Comments  路  Source: squizlabs/PHP_CodeSniffer

Hi! And thank you you exist! :)
Now i have to request if there is a possibility to ignore files beeing scaned which are symlinked to project paths.
Kind regards

Enhancement

Most helpful comment

+1 for the ability to ignore symlinks

All 5 comments

I think you're the first person to ever ask for symlinks to not be followed 馃槃

There is no way currently, but I'd be happy to support it. But unless there is a bunch of people asking for this, or a PR is sent, it's not likely to get done for a while. The backlog is huge.

:) funny, how do people work now? I was wondering... because its the symlink of composers vendor/ or deeper (sub projects) which makes me asking. :)

Have the same problem: scanning many sites, some have been hacked and have a symlink to / this causes php-codesniffer to loop forever :(

+1 for the ability to ignore symlinks

@JacobMC i solved it using shell scripts and using an ignorline to pipe it to --ignore=YOUR_PATH,THAT_PATH,OTHER_PATH

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jrfnl picture jrfnl  路  3Comments

justintadlock picture justintadlock  路  3Comments

amcsi picture amcsi  路  3Comments

UziTech picture UziTech  路  3Comments

petegore picture petegore  路  3Comments