You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SonarLint flags the fieldsAndTerms method in the ContentFunctionsDescriptor at a cognitive complexity of 97. The ideal target is 15.
There is some pre-computation work that doesn't need to happen until later, if at all.
Realistically a record-style object that contains a set of fields and a set of values is all that's needed. An array of sets is weird, but works for now.
The text was updated successfully, but these errors were encountered:
Refactor the method ContentFunctionsDescriptor.fieldsAndTerms() to
reduce the cognitive complexity as measured by SolarLint from 97 to
within the target of 15.
Fixes#2456
SonarLint flags the fieldsAndTerms method in the ContentFunctionsDescriptor at a cognitive complexity of 97. The ideal target is 15.
There is some pre-computation work that doesn't need to happen until later, if at all.
Realistically a record-style object that contains a set of fields and a set of values is all that's needed. An array of sets is weird, but works for now.
The text was updated successfully, but these errors were encountered: