Brisanet/ion

View on GitHub

Showing 3 of 14 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

this.config.columns.forEach((columnEach) => {
if (columnEach.key != column.key) {
columnEach.desc = null;
}
});
Severity: Major
Found in projects/ion/src/lib/smart-table/smart-table.component.ts and 1 other location - About 1 hr to fix
projects/ion/src/lib/table/table.component.ts on lines 80..84

Identical blocks of code found in 2 locations. Consider refactoring.
Open

this.config.columns.forEach((columnEach) => {
if (columnEach.key != column.key) {
columnEach.desc = null;
}
});
Severity: Major
Found in projects/ion/src/lib/table/table.component.ts and 1 other location - About 1 hr to fix
projects/ion/src/lib/smart-table/smart-table.component.ts on lines 92..96

Function isEmpty has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

export function isEmpty(value: unknown): boolean {
if (value === null || value === undefined) {
return true;
}
 
 
Severity: Minor
Found in projects/ion/src/core/utils/isEmpty.ts - About 25 mins to fix
Severity
Category
Status
Source
Language