diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-11-05 14:14:35 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-11-09 16:58:03 +0100 |
commit | ae7efa83ddab2008efab798ef9b8b119009aca69 (patch) | |
tree | 20c7f4cec49de24f96c8ce09275767aa48f4db99 /it/it-projects | |
parent | f1b4428c014da7768d14bbd34cc322594b283bb4 (diff) | |
download | sonarqube-ae7efa83ddab2008efab798ef9b8b119009aca69.tar.gz sonarqube-ae7efa83ddab2008efab798ef9b8b119009aca69.zip |
SONAR-6978 Provide enhanced issue locations (start/end) offset in issues mode
Diffstat (limited to 'it/it-projects')
-rw-r--r-- | it/it-projects/shared/xoo-precise-issues/sonar-project.properties | 5 | ||||
-rw-r--r-- | it/it-projects/shared/xoo-precise-issues/src/main/xoo/sample/Sample.xoo | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/it/it-projects/shared/xoo-precise-issues/sonar-project.properties b/it/it-projects/shared/xoo-precise-issues/sonar-project.properties new file mode 100644 index 00000000000..1a7b22bbc15 --- /dev/null +++ b/it/it-projects/shared/xoo-precise-issues/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample-multiline +sonar.projectName=Sample Multiline +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo diff --git a/it/it-projects/shared/xoo-precise-issues/src/main/xoo/sample/Sample.xoo b/it/it-projects/shared/xoo-precise-issues/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..56ce09970af --- /dev/null +++ b/it/it-projects/shared/xoo-precise-issues/src/main/xoo/sample/Sample.xoo @@ -0,0 +1,16 @@ +package sample; + +public class Sample { + + public Sample(int i) { + int j {xoo-start-issue:0}= i++{xoo-end-issue:0}; + } + + {xoo-start-issue:1}private String myMethod() { + if (foo == bar) { + return "hello"; + } else { + throw new IllegalStateException(); + } + }{xoo-end-issue:1} +} |