The Source code complexity metric and quality controlling is a important part of software quality guarantee system. It bases on source code and runs through the phase of software developing, code examination, unit testing, integration testing, system testing and software maintenance.This paper focus on Cyclomatic Complexity(McCabe) , Halstead Complexity and LineCount Complexity of the source code. It describes the realization of source code complexity metric tool—CodeMetric which developed by author. Additional, all the works are based on the Hitachi Account Management System which developed by our institute and Hitachi company.CodeMetric works on the .net platform and faces C# source code. It realized the automatic analyse for source code complexity and the integration for product metric, process metric and project metric. Source code quality management and controlling are ensured by this tool.In the last part of this paper, Software defect mount predication and module stability and complexity analyse are be done according the complexity information. |