All Questions
Tagged with cyclomatic-complexity null
5 questions
6
votes
2
answers
21k
views
handle null in Comparator class
I have a class LoanAccount that contains an attributes creationDate and loanAmount.
I ...
0
votes
2
answers
136
views
Verifying that all fields of a unit has been suitably filled in
I have unit class which have some properties, and I have acceptancePolicy table which contain values. If values (from one row) are true method should return true. The method is below. How can I ...
1
vote
2
answers
133
views
Reducing code complexity for UsergridClient constructor
I'm initializing a class in JavaScript with a bunch of complex property checks. Codacy is showing that this is bad design and recommends reducing cyclomatic complexity.
I'm at a loss for how to ...
2
votes
3
answers
2k
views
Validating the presence of properties in a document
How can I reduce cyclomatic complexity of validation and refactor it better way?
...
1
vote
2
answers
199
views
Reducing cyclomatic complexity in a simple string concatenation
I have written the following function that takes an address object and builds a string using the object properties. It will later be used to display a tooltip
<...