Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Squid
-
Labels:None
-
Number of attachments :
Description
As a consequence - metric 'lines' computed by org.sonar.squid.text.Source also can be incorrect. Here is a test to reproduce problem:
LinesFactory factory = new LinesFactory(new StringReader("1\r\n2\r\n")); assertThat(factory.getLines().size()).isEqualTo(2); factory = new LinesFactory(new StringReader("1\n2\n")); assertThat(factory.getLines().size()).isEqualTo(2);
All versions at least from Sonar 2.5 to 3.2 affected.
Issue Links
- is related to
-
SONARPLUGINS-2118
Incorrect computation of number of lines in case of Linux EOL
-
@Evgeny, perhaps we should close this issue "Won't Fix" as the goal is to depreciate and then remove this class ?