aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-projects
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-09 16:37:56 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-10 10:19:53 +0100
commit7afdd2432c308f95d97d06ac45865d67d5040682 (patch)
tree3735bd0a5900bf0eaba893a28ff2e6ad6ba5748f /it/it-projects
parent968bd79f0d5e57a03dd09b7c1c40514b323c30fb (diff)
downloadsonarqube-7afdd2432c308f95d97d06ac45865d67d5040682.tar.gz
sonarqube-7afdd2432c308f95d97d06ac45865d67d5040682.zip
SONAR-8760 Define 'Cognitive Complexity' metric
Diffstat (limited to 'it/it-projects')
-rw-r--r--it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a1/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures2
-rw-r--r--it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a2/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures3
-rw-r--r--it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b1/src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo.measures4
-rw-r--r--it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b2/src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo.measures4
-rw-r--r--it/it-projects/shared/xoo-sample/src/main/xoo/sample/Sample.xoo.measures1
5 files changed, 12 insertions, 2 deletions
diff --git a/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a1/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures b/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a1/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
index 7812e4167fb..f3953ccd0fe 100644
--- a/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a1/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
+++ b/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a1/src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo.measures
@@ -1,2 +1,4 @@
ncloc:12
classes:1
+complexity:3
+cognitive_complexity:4
diff --git a/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a2/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures b/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a2/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
index 63df5add6d4..a23e10d8ab4 100644
--- a/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a2/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
+++ b/it/it-projects/shared/xoo-multi-modules-sample/module_a/module_a2/src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo.measures
@@ -1,2 +1,5 @@
ncloc:15
classes:1
+complexity:4
+cognitive_complexity:5
+
diff --git a/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b1/src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo.measures b/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b1/src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo.measures
index 3947d3bdbff..f3953ccd0fe 100644
--- a/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b1/src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo.measures
+++ b/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b1/src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo.measures
@@ -1,2 +1,4 @@
ncloc:12
-classes:1 \ No newline at end of file
+classes:1
+complexity:3
+cognitive_complexity:4
diff --git a/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b2/src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo.measures b/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b2/src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo.measures
index 3947d3bdbff..f3953ccd0fe 100644
--- a/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b2/src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo.measures
+++ b/it/it-projects/shared/xoo-multi-modules-sample/module_b/module_b2/src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo.measures
@@ -1,2 +1,4 @@
ncloc:12
-classes:1 \ No newline at end of file
+classes:1
+complexity:3
+cognitive_complexity:4
diff --git a/it/it-projects/shared/xoo-sample/src/main/xoo/sample/Sample.xoo.measures b/it/it-projects/shared/xoo-sample/src/main/xoo/sample/Sample.xoo.measures
index 641332a5013..06c9b6c2f38 100644
--- a/it/it-projects/shared/xoo-sample/src/main/xoo/sample/Sample.xoo.measures
+++ b/it/it-projects/shared/xoo-sample/src/main/xoo/sample/Sample.xoo.measures
@@ -2,6 +2,7 @@ ncloc:13
#Used by dashboard/widgets tests
complexity:3
complexity_in_classes:3
+cognitive_complexity:4
classes:1
comment_lines:3
public_api:5