![]() Cyclomatic complexity may also be applied to individual functions, modules, methods or classes within a program. The concept, although not the method, is somewhat similar to that of general text complexity measured by the Flesch-Kincaid Readability Test.Ĭyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to indivisible groups of commands of a program, and a directed edge connects two nodes if the second command might be executed immediately after the first command. It directly measures the number of linearly independent paths through a program's source code. in 1976 and is used to indicate the complexity of a program. (Cyclomatic Complexity) - 16.2 * ln(Lines of Code))*100 / 171) Cyclomatic ComplexityĬyclomatic complexity (or conditional complexity) is a software metric (measurement). Maintainability Index = MAX(0,(171 - 5.2 * ln(Halstead Volume) - 0.23 * This metric originally is calculated as follows: This is the command line tool, that analyzes code in your solution code and provides 5 important quantitative characteristics for Project Manager / Team leader. Tool to collect characteristics: Visual Studio Code Metrics PowerTool 10.0, by Microsoft Corporation I have reviewed a number of extensions for Visual Studio Professional, and have stopped on the following combination: I am not affiliated with any of the tool authors mentioned in the article. Note: The explanation for metrics are taken from Wikipedia and extension developer's blog. ![]() This version does not provide ready to use tools for collecting these statistics. Unfortunately, Visual Studio professional was used by me and team members. Recently my superior requested to report some code metrics from my team.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |