I’m seeing the same behaviour as reported in this old thread:
I am coding in PHP with PhpStorm 2022.3 and the plugin SonarLint 7.2.1.58118 on macOS 12.6.1. The plugin is connected to an active subscription of SonarCloud. I am not sure which version is running on SonarCloud, but I assume the cloud version always runs the last one.
The indentation check gives wrong suggestions on PHP file indented with tabs. It counts tabs that are in the actual file as 1 column, but it counts tabs that need to be added as 4 columns.
I have attached a simple PHP file to de…
Even setting the tab size to 4 spaces in my IDE, it still suggest to align to column 20.
The problem is, with a tab of 4 spaces, you start in column 1, and goes 5, 9, 13, 17, 21. You can’t indent to column 20.
There are something I’m missing here?
Thanks. =)
Hello @Jeferson_Emanuel ,
welcome to the community. Thanks for your request. Can you provide a reproducer, so that we can test it on our side?
Best,
Nils
Hi Nils_Werner , thanks for the reply.
I’m new in this development scenario. Only 7 months working as a junior developer.
Can you be more specific in what is this reproducer? A file, some block of code…
Hi @Jeferson_Emanuel ,
Sorry for the late reply. Indeed, a reproducer is a minimal snippet of code that produces the issue. In your case a few lines of code which are causing the unexpected issue.
Best,