Skip to main content

All Questions

Filter by
Sorted by
Tagged with
6 votes
2 answers
21k views

handle null in Comparator class

I have a class LoanAccount that contains an attributes creationDate and loanAmount. I ...
Cristian Iacob's user avatar
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 ...
123498's user avatar
  • 11
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 ...
brandonscript's user avatar
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? ...
Mike S's user avatar
  • 131
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 <...
Simon Adcock's user avatar