diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-09-21 10:53:59 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-09-22 17:20:56 +0200 |
commit | 44236bb6fb6ce4cc2311c487c70df17228ec5c1e (patch) | |
tree | 6b0906589043fd43d3eaedfdbcf60e9d252f8ddb /it/it-projects | |
parent | 42d99774d229304925240d63f0ea9f16a9c04a66 (diff) | |
download | sonarqube-44236bb6fb6ce4cc2311c487c70df17228ec5c1e.tar.gz sonarqube-44236bb6fb6ce4cc2311c487c70df17228ec5c1e.zip |
SONAR-5876 add SqaleNewMeasuresVisitor to compute new_sqale_debt_ratio
Diffstat (limited to 'it/it-projects')
12 files changed, 137 insertions, 0 deletions
diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties b/it/it-projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties new file mode 100644 index 00000000000..4ea4c91bacb --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v1/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo +sonar.scm.provider=xoo diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..467e82d8f2c --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo @@ -0,0 +1,13 @@ +package sample; + +// class comment +public class Sample { + + public Sample(int i) { + int j = i++; + } + + private String method1() { + return "hello"; + } +} diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..874fe7bfea5 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,4 @@ +ncloc:9 +comment_lines:5 +ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=1;14=0 +classes:1 diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm new file mode 100644 index 00000000000..9f1974d8cba --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v1/src/main/xoo/sample/Sample.xoo.scm @@ -0,0 +1,14 @@ +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 +1,user1,2015-08-01 diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties b/it/it-projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties new file mode 100644 index 00000000000..4ea4c91bacb --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v2/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo +sonar.scm.provider=xoo diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..882793391e0 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo @@ -0,0 +1,17 @@ +package sample; + +// class comment +public class Sample { + + public Sample(int i) { + int j = i++; + } + + private String method1() { + return "hello"; + } + + private String method2() { + return "hello2"; + } +} diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..98f63c1fe47 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,4 @@ +ncloc:12 +comment_lines:6 +ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=0;14=1;15=1;16=1;17=1;18=0 +classes:1 diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm new file mode 100644 index 00000000000..280b7d64326 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v2/src/main/xoo/sample/Sample.xoo.scm @@ -0,0 +1,18 @@ +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +2,user2,2015-09-17 +2,user2,2015-09-17 +2,user2,2015-09-17 +2,user2,2015-09-17 +1,user1,2015-09-01 +1,user1,2015-09-01 diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties b/it/it-projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties new file mode 100644 index 00000000000..4ea4c91bacb --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v3/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=1.0-SNAPSHOT +sonar.sources=src/main/xoo +sonar.language=xoo +sonar.scm.provider=xoo diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo new file mode 100644 index 00000000000..0b9e023d079 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo @@ -0,0 +1,22 @@ +package sample; + +// class comment +public class Sample { + + public Sample(int i) { + int j = i++; + } + + private String method1() { + return "hello"; + } + + private String method2() { + return "hello2"; + } + + private String method3() { + String e = "hello3"; + return e; + } +} diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures new file mode 100644 index 00000000000..d467f571f3f --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.measures @@ -0,0 +1,4 @@ +ncloc:16 +comment_lines:7 +ncloc_data:1=1;2=0;3=0;4=1;5=0;6=1;7=1;8=1;9=0;10=1;11=1;12=1;13=0;14=1;15=1;16=1;17=0;18=1;19=1;20=1;21=1;22=1;23=0 +classes:1 diff --git a/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm new file mode 100644 index 00000000000..4b429f3c152 --- /dev/null +++ b/it/it-projects/measure/xoo-new-debt-ratio-v3/src/main/xoo/sample/Sample.xoo.scm @@ -0,0 +1,23 @@ +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +1,user1,2015-09-01 +2,user2,2015-09-17 +2,user2,2015-09-17 +2,user2,2015-09-17 +2,user2,2015-09-17 +3,user2,2015-09-20 +3,user2,2015-09-20 +3,user2,2015-09-20 +3,user2,2015-09-20 +3,user2,2015-09-20 +1,user1,2015-09-01 +1,user1,2015-09-01 |