Code line displays in sonar instance is difference than in my local


I have the code on my local like as below

1 if (,
2 Double.parseDouble(newerDataValue)) != 0) {

But when scanning the code with sonar, I see above codes into sonar instance is difference. It’s one line code.

1 if (,Double.parseDouble(newerDataValue)) != 0) {

How is the wrong with this?


What line endings do you use?


Hi Ann,

It’s a LF ending.


Frankly, I was hoping for something exotic, which LF is not. :slight_smile:

TBH, I’ve got no clue. My first thought is something ‘clever’ in the middle like… Prettier or its ilk. It’s certainly not something we set out to do. And since this is the first time I’ve ever heard this complaint, I’m pretty sure it’s not us even by accident.