You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This still scans /path/to/code/libraries/db_errors.php (there are bunch of files, not only a single one, so // phpcs:ignoreFile would not be a viable option).
Thanks!
The text was updated successfully, but these errors were encountered:
Perhaps you want the -l flag ("Local directory only, no recursion")?
Looking at the example in the linked documentation, you may want phpcs --ignore=/libraries/* /path/to/code, but I've not tested this myself. Can you report back if this behaves any differently for you?
I get the
--ignore
flag and I've read Advanced-Usage#ignoring-files-and-folders, but I don't see how to ignore a subdirectory of the scanned code.Example:
This still scans
/path/to/code/libraries/db_errors.php
(there are bunch of files, not only a single one, so// phpcs:ignoreFile
would not be a viable option).Thanks!
The text was updated successfully, but these errors were encountered: