qlik-oss/picasso.js

View on GitHub
plugins/q/src/data/field.js

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Showing 1 of 1 total issue

Function qField has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

export default function qField({ meta, id, key, localeInfo, fieldExtractor, value, type, sourceField } = {}) {
let values;
 
const valueFn = value || (type === 'dimension' ? (d) => d?.qElemNo : (d) => d?.qValue);
const labelFn = (d) => d?.qText || '';
Severity: Minor
Found in plugins/q/src/data/field.js - About 35 mins to fix

There are no issues that match your filters.

Category
Status