To measure the Cyclomatic Complexity you can look at theĬontrol flow graph for a section of code to determine the number of independent Number of tests you need to have complete test coverage over the section of code The idea of Cyclomatic Complexity was first proposed in 1976 by Thomas McCabe asĪ way to figure out what software would be difficult to test or maintain.Ĭyclomatic Complexity can give a good proxy for how hard it is to understandĬode (more on this in a bit) and it can also help you determine the minimum Specifically on two measures of complexity – Cyclomatic Complexity & its younger To judge whether code is easily understandable, but today let’s focus in There are a handful of different ways to measure this area of code quality and Then realising we’d need to read it five or six more times before we can grasp Or looking at a function, reading through it, getting to the end, and Taking a look at a repo that we can’t quite make heads or
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |