]> source.dussan.org Git - sonarqube.git/commit
SONAR-6318 Don't fail when bad highlighting/symbols
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 20 Oct 2015 10:47:24 +0000 (12:47 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 21 Oct 2015 16:45:43 +0000 (18:45 +0200)
commitc69b3c6c5c3cfe819dd2f3eb4b3c23254647c2f8
tree8d8cb06853852343ab22828768643ecbe803c881
parent146b8393422e64b7a8a4be3a894e0ef0f8caca5c
SONAR-6318 Don't fail when bad highlighting/symbols

If highlighting data doesn't match source code data (for instance in the case of a bad encoding), the compute engine will not fail anymore but will instead display a warning and then ignore the remaining highlighting
server/sonar-server/src/main/java/org/sonar/server/computation/source/HighlightingLineReader.java
server/sonar-server/src/main/java/org/sonar/server/computation/source/RangeOffsetConverter.java
server/sonar-server/src/main/java/org/sonar/server/computation/source/SymbolsLineReader.java
server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java
server/sonar-server/src/test/java/org/sonar/server/computation/source/HighlightingLineReaderTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/source/RangeOffsetConverterTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/source/SymbolsLineReaderTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistFileSourcesStepTest.java