I am currently working on a web application that receives a significant amount of data from a database that can return null results. When going through cyclic complexity for an application, a number of functions weigh between 10-30. In most cases, most functions with a large number have many lines, similar to the following:
If Not oraData.IsDBNull(4) Then row("Field") = oraData.GetString(4)
What leads me to my question, what is the best way to try to reduce these numbers? Right now I'm looking at the fact that most of the features are below 10.
code-metrics cyclomatic-complexity data-processing
rjzii
source share