phpcs complaining about indentation of javascript files

Since 2018.3 the following is happening on all js files:

I've tried changing phpcs and even disabling it all together, but it keeps saying this about every js file.

Other computers/users have this issue as well. For now the only solution has been to stick to 2018.2. Also the 2018.3.2 update does not fix it.

Could this be a (new) configuration issue in the new version? If so how can I fix this? Or is it a bug?

Thanks!

 

edit: Could it be related to this issue: 
https://youtrack.jetbrains.com/issue/WI-44607

That it isn't picking up the phpcs.xml anymore, because it has a value of:

<arg name="extensions" value="php"/>

 

0
3 comments

I've tried changing phpcs and even disabling it all together

Uhm, looks like you didn't disable phpcs inspection if IDE was still complaining. Disable it at File | Settings | Editor | Inspections: PHP | Quality tools.
 
As for the issue: please see https://youtrack.jetbrains.com/issue/WI-44308#focus=streamItem-27-3212873-0-0 and the rest of comments.
0
Avatar
Permanently deleted user

Yes but disabling doesn't really fix the issue.

I found that in 2018.3 it ignores the extensions setting in phpcs.xml for some reason, while it doesn't in 2018.2.

I can fix it with an exclude-pattern for .js files, but again that is just avoiding the issue.

Why does the extensions setting not get picked up anymore in 2018.3?

0

Because of a bug, please check the link Dmitry pasted in his reply: https://youtrack.jetbrains.com/issue/WI-44308

0

Please sign in to leave a comment.