Closed danielpost closed 2 years ago
Thanks @danielpost, I think the confusion here is caused by the fact that the extension uses regular expressions while everything else in VS Code uses glob patterns. Looking through the settings, I don't see any other instances of regular expressions being used. I think I'll update this to use glob patterns instead.
I'll also have it inherit from files.exclude
like other settings of this kind.
@ObliviousHarmony That sounds like a great idea, thanks! 🙏
Hello @danielpost,
I've created a new phpCodeSniffer.exclude
option that supports glob matching. This new option is available in the latest 1.7.0 release.
This is more of a help request than a GitHub issue (apologies!), but I'm wondering if it would be possible to provide a more detailed example of how to use
phpCodeSniffer.ignorePatterns
. In my case, I currently have the following list, but it seems to ignore everything:The intention here is to ignore anything within certain other folders (for example, the last line aims to ignore anything within the
wordpress
folder when it is a subfolder of/projects/plugins/
at any level.I think this might also be helpful as an extra example in the README. Thank you in advance!