Skip to content
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

PHPStorm 2020.2 compactability #3125

Closed
reanim8ed opened this issue Sep 24, 2020 · 3 comments
Closed

PHPStorm 2020.2 compactability #3125

reanim8ed opened this issue Sep 24, 2020 · 3 comments

Comments

@reanim8ed
Copy link

Describe the bug
After PHPStorm update from 2020.1 to 2020.2 every file now has "Please trim any trailing whitespace" warning: https://i.imgur.com/ZzNOpb9.png

If I run Code Beautifier - nothing changes in file but the errors are gone: https://i.imgur.com/UlUn2TQ.png

@gsherwood
Copy link
Member

I'm not sure what I can do to help here. That error message is not one that is included with PHPCS, so you may be using a coding standard not maintained here. You also said you run a fix over it and the error stops reporting, which could mean there was whitespace there and something removed it. Maybe it's not being shown in the editor?

The only way to know if this is a PHPCS issue is for you to run PHPCS outside of the editor and provide the file and standard as part of this bug report so I can try replicating the issue.

@reanim8ed
Copy link
Author

Hi @gsherwood
PHPStorm version I'm using: 2020.2
CodeSniffer is 3.5.6: https://bit.ly/32VZnzg
Symfony coding standard rules are from this repo: https://github.com/djoos/Symfony-coding-standard

@binary64
Copy link

@reanim8ed try running phpcbf -vv - you will probably see it's doing 50 passes and giving up.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants