Automatic Measurement of Source Code Complexity
Hassan Raza Bhatti · Epubl LTU · 2011
The aim of this master thesis is to explore the area of software metrics and to identify software metrics related to the code complexity. In this thesis, thorough study is made to determine whether or not the automatic measurement of source code complexity is possible. A tool for automatic measurement of source code complexity is implemented during this thesis to prove the idea that the automatic measurement is achievable. This report summaries the theory about software metrics, purpose and classification of the metrics, and the areas where metrics can be helpful to use. Detail description about some selected metrics (like Cyclomatic Complexity and Halstead metrics) is also a part of this report. Three core requirements of this thesis are: 1) Measurement of code complexity for the code written in C. 2) Measurement should perform automatically on the code base and on a regular basis for new code releases. 3) Run on Solaris. Some of the existing complexity measurement tools (open-source and commercial) are evaluated in this thesis. QA-C is an existing commercially available tool for the code complexity of C code. The tool implemented in this thesis uses QA-C as a foundation for analyzing C code on Solaris. Web interfaces are designed to present the results of code complexity measurement.
Cited by 7 works.
Authors
References
- A Complexity Measure
- Software Metrics: A Rigorous and Practical Approach
- Controlling software projects
- Software metrics
- Applying software complexity metrics to program maintenance
- M. H. Halstead's software science: a critical examination
- An analysis of the design and definitions of halstead's metrics
- Applying the ABC metric to C, C++, and Java
- Automated Source Code Measurement Environment For Software Quality
- A Reliability Model Incorporating Software Quality Factors