File size: 2,951 Bytes
b2fbd09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[WARN] 94 of 98 planned weeks collected, 4 failed [('BUILD_FAILED', 4)]
[WARN] week spacing: {7.0: 90, 14.0: 2, 21.0: 1} days (should all be 7)
[WARN] 50 weeks reuse the previous commit (no commits that week) - normal
[PASS] project: range check done (94 rows)
[PASS] module: range check done (94 rows)
[PASS] file: range check done (5576 rows)
[PASS] violations == bugs + vulnerabilities + code_smells
[PASS] violations == sum of 5 severities
[PASS] comment_lines_density == comment_lines/(ncloc+comment_lines)*100
[PASS] sqale_debt_ratio ~= sqale_index/(30*ncloc)*100
[PASS] sum of files == sum of modules == project for ncloc
[PASS] sum of files == sum of modules == project for bugs
[PASS] sum of files == sum of modules == project for code_smells
[PASS] sum of files == sum of modules == project for vulnerabilities
[PASS] sum of files == sum of modules == project for sqale_index
[PASS] CK classes: modules add up to project
[PASS] CKJM dropped at most 0.0% of classes in a week (keep under 5%)
[PASS] 0.0% of Sonar files have no CKJM match (should be near 0)
[PASS] project: keys ['week'] unique (0 duplicates)
[PASS] module: keys ['week', 'module'] unique (0 duplicates)
[PASS] file: keys ['week', 'module', 'file'] unique (0 duplicates)
[PASS] td_3w_lag equals the value 3 weeks earlier (0 wrong)
[PASS] target_td_3w equals the value 3 weeks later (0 wrong)
[PASS] file targets follow the same file (lineage) 3 weeks later (0 wrong of 4604)
[PASS] history: files == modules == project for git_lines_churned_90d
[PASS] analyzer fingerprint: 1 distinct (SonarQube 26.10.0.133078, profile 'Sonar way comprehensive', 618 rules)
[PASS] stale-scan check: SonarQube lines match git for 5576 of 5576 file-weeks (SonarQube - git newlines -> +1: 5576; files not found in git: 0)
[PASS] no ncloc jump > 20% week to week

Compared with the paper on 94 weeks
column                             ours(avg)  paper(avg)   ratio  trend rho
ncloc                                 4912.1      4914.6    1.00       1.00
classes                                 62.5        62.5    1.00       1.00
complexity                            1036.6      1037.4    1.00       1.00
comment_lines                         1980.3      1982.4    1.00       1.00
bugs                                    14.2        15.8    0.90       0.97
vulnerabilities                          5.6        15.5    0.36       0.73
code_smells                            238.6       229.3    1.04       0.99
duplicated_blocks                        1.4         1.5    0.97       0.97
sqale_index                           1877.9      2061.7    0.91       0.91
total_principal                       2099.7      2440.4    0.86       0.97

How to read: ncloc/classes ratio should be ~1.00 (same code). Issue counts and TD can differ (newer SonarQube rules) but the trend rho should be high (> 0.8). CK metrics should be close if they averaged per class.

SUMMARY: {'PASS': 25, 'WARN': 3, 'FAIL': 0}