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

Hi,

I have the code on my local like as below

1 if (Double.compare(Double.parseDouble(olderDataValue),
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.compare(Double.parseDouble(olderDataValue),Double.parseDouble(newerDataValue)) != 0) {

How is the wrong with this?

Hi,

What line endings do you use?

 
Ann

Hi Ann,

It’s a LF ending.

Hi,

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.

 
:woman_shrugging:
Ann