-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I add exclude pattern *.js in xml then it will not working every php file that has json name #2955
Comments
The exclude patterns are a special kind of regex in which This is documented behaviour, see: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders Try using this instead: |
Thank you, its work. |
It works, but, why does *.js which gets expanded to |
@rmpel See #2955 (comment) - might be something in your file path which triggers the rule. See the more stable example to use in the comment. On another note: This repo is abandoned and https://github.com/PHPCSStandards/PHP_CodeSniffer is its successor. See: #3932. If you need further assistance with this, I suggest you open a discussion item in the new repo. |
phpcs v 3.5.5
<exclude-pattern>*/*.js</exclude-pattern>
after adding this and then below files will not able to check errors and
show nothing errrors.
StaticJsonHandler.php
StaticJsonServiceProvider.php
static_json.php
The text was updated successfully, but these errors were encountered: