-
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
Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock #983
Comments
If there is no blank line between a comment and a class member, everything works smoothly.
|
What coding standard are you using? I can't replicate any fixer errors with any of the included ones. If you are using a custom one, can you share it with me? It's quite possible that two sniffs are conflicting. If you can't share it, can you post the output of this command: |
Hi, We are using a custom ruleset definition what might be an issue. The ruleset is below.
|
Thanks for getting back to me. Your standard obviously leaves out some sniffs the included ones have, which gets the bug to appear. I've now fixed it. It was only a problem with inline comments above member vars. |
@gsherwood , which commit contains the fix? |
I typed the wrong bug ID in the commit. The fix is this one: 0434c48 |
If the file contains following code it is reported as an error and nothing is fixed.
Output from phpcbf:
Processing Contract.php [PHP => 58 tokens in 16 lines]... DONE in 15ms (1 fixable violations)
* => Fixing file: 2/1 violations remaining [made 50 passes]... ERROR in 1.24 secs*
No fixable errors were found
Time: 1.3 secs; Memory: 6Mb
The text was updated successfully, but these errors were encountered: