2015
DOI: 10.1002/smr.1760
|View full text |Cite
|
Sign up to set email alerts
|

Empirical analysis of the relationship between CC and SLOC in a large corpus of Java methods and C functions

Abstract: Measuring the internal quality of source code is one of the traditional goals of making software development into an engineering discipline. Cyclomatic complexity (CC) is an often used source code quality metric, next to source lines of code (SLOC). However, the use of the CC metric is challenged by the repeated claim that CC is redundant with respect to SLOC because of strong linear correlation.We conducted an extensive literature study of the CC/SLOC correlation results. Next, we tested correlation on large … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
2
1

Citation Types

0
20
0

Year Published

2017
2017
2019
2019

Publication Types

Select...
4
1
1

Relationship

1
5

Authors

Journals

citations
Cited by 24 publications
(20 citation statements)
references
References 72 publications
0
20
0
Order By: Relevance
“…State of the art: Source code analysis has its firm fundaments in compiler (frontend) construction [2] and reverse engineering [20]. Based on this theory and [8,15]. However, mining information from source code at scale, made available in an integrated platform, including the acquisition, extraction, and querying of source code from groups of arbitrarily selected projects is just beyond the current state-of-the-art.…”
Section: Development Of Source Code Analysis Toolsmentioning
confidence: 99%
“…State of the art: Source code analysis has its firm fundaments in compiler (frontend) construction [2] and reverse engineering [20]. Based on this theory and [8,15]. However, mining information from source code at scale, made available in an integrated platform, including the acquisition, extraction, and querying of source code from groups of arbitrarily selected projects is just beyond the current state-of-the-art.…”
Section: Development Of Source Code Analysis Toolsmentioning
confidence: 99%
“…Many studies have explored correlations between various software metrics such as McCabe's cyclomatic complexity (Landman et al 2016;Henry and Selig 1990;Henry et al 1981;Tashtoush et al 2014;Jay et al 2009;Meulen and Revilla 2007), lines of code (Landman et al 2016;Henry and Selig 1990;Tashtoush et al 2014;Jay et al 2009;Meulen and Revilla 2007), Halstead's metrics (Henry and Selig 1990;Henry et al 1981;Tashtoush et al 2014; Meulen and Revilla 2007) Kafura's information flow (Henry et al 1981), Number of comments, Meulen and Revilla (2007), etc. Most of these studies have observed that code metrics are highly correlated.…”
Section: Introductionmentioning
confidence: 99%
“…These results are somewhat refuted by the analysis of millions of Java and C functions conducted by Landman and colleagues [34]; the authors conclude that the relationship between Cyclomatic Complexity and LOC is not that strong and argue in favor of using the two metrics.…”
Section: Chapter 2 Related Workmentioning
confidence: 93%
“…We also note that there is an ongoing, unresolved debate about the usefulness of the Cyclomatic Complexity metric. While numerous research studies (e.g., [43], [44], [45], [48], [50]) have argued in favor of the existence of a strong correlation between Cyclomatic Complexity and Lines of Code, and therefore advocate for the use of only one of them, namely LOC because it is simpler to compute, some authors on the contrary claim that the correlation between CC and LOC is only moderate when the source code is analyzed in modules rather than as an aggregate unit (larger program) [49], [51] as claimed by the former. Though our intent is not to settle the ongoing debate, we, however, investigate these claims for application code and test code at the method level (lowest level of granularity for complexity metrics) and as an aggregate…”
Section: Chapter 2 Related Workmentioning
confidence: 99%
See 1 more Smart Citation