how to make SonarQube check JS code indentation

1.1k Views Asked by At

I use a SonarQube 5.6.6 with sonarJS 3.3.0.5702 pluged on.

I am looking how to make my Sonar check the code indentation, i don't find rules for that on JavaScript.

Is my sonarJS version in cause ?

2

There are 2 best solutions below

0
On

There is no rules in SonarJS checking code indentation.

You can use prettier for your project to ganantee right formatting

0
On