diff options
author | Eric Hartmann <hartmann.eric@gmail.com> | 2017-09-06 17:52:29 +0200 |
---|---|---|
committer | Eric Hartmann <hartmann.eric@gmail.Com> | 2017-09-14 18:18:20 +0200 |
commit | 89e6fc25ae823c2d572ffe60159a05096bf5b2eb (patch) | |
tree | ef025c8726f31e58ff2c7fbca5ecdd9a4f1534d1 /tests/projects/analysis | |
parent | 31d1f3edfce3e40d51504dc4af1932806806d752 (diff) | |
download | sonarqube-89e6fc25ae823c2d572ffe60159a05096bf5b2eb.tar.gz sonarqube-89e6fc25ae823c2d572ffe60159a05096bf5b2eb.zip |
SONAR-9762 Purge must not catch exception
Diffstat (limited to 'tests/projects/analysis')
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties b/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties new file mode 100644 index 00000000000..9e4aa0e3584 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-purge/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo diff --git a/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo b/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..41871e123a3 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-purge/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/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures b/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..06c9b6c2f38 --- /dev/null +++ b/tests/projects/analysis/resilience/resilience-purge/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,9 @@ +ncloc:13 +#Used by dashboard/widgets tests +complexity:3 +complexity_in_classes:3 +cognitive_complexity:4 +classes:1 +comment_lines:3 +public_api:5 +public_undocumented_api:2 |