diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-11-12 16:07:45 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-11-16 15:12:13 +0100 |
commit | ff15786ca7aa029a1ae4a2ed67f5352a1b03853b (patch) | |
tree | 8092e240908b8514da9ce847d50c7be27983e60d /it/it-projects | |
parent | 9db3683485161ca1a5b786ccbed3144d4daf6610 (diff) | |
download | sonarqube-ff15786ca7aa029a1ae4a2ed67f5352a1b03853b.tar.gz sonarqube-ff15786ca7aa029a1ae4a2ed67f5352a1b03853b.zip |
SONAR-5676 Improve validation of highlighting API
Diffstat (limited to 'it/it-projects')
3 files changed, 24 insertions, 0 deletions
diff --git a/it/it-projects/testing/xoo-sample-highlighting/sonar-project.properties b/it/it-projects/testing/xoo-sample-highlighting/sonar-project.properties new file mode 100644 index 00000000000..86ba98aee61 --- /dev/null +++ b/it/it-projects/testing/xoo-sample-highlighting/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample-highlighting +sonar.projectName=Sample Highlighting +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo diff --git a/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo b/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo @@ -0,0 +1,16 @@ +package sample; + +public class Sample { + + public Sample(int i) { + int j = i++; + } + + private String myMethod() { + if (foo == bar) { + return "hello"; + } else { + throw new IllegalStateException(); + } + } +} diff --git a/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo.highlighting b/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo.highlighting new file mode 100644 index 00000000000..4530b0c572b --- /dev/null +++ b/it/it-projects/testing/xoo-sample-highlighting/src/main/xoo/sample/Sample.xoo.highlighting @@ -0,0 +1,3 @@ +# <startOffset>:<endOffset>:<typeOfText> + +20:20:k |