coronasafe/care_fe

View on GitHub
plugins/treeShakeCareIcons.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function treeShakeCareIcons has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

export function treeShakeCareIcons(
options: TreeShakeCareIconsOptions = { iconWhitelist: [] },
): Plugin {
const rootDir = path.resolve(__dirname, ".."); // update this if moving this code to a different file
const lineIconNameRegex = /"l-[a-z]+(?:-[a-z]+)*"/g;
Severity: Minor
Found in plugins/treeShakeCareIcons.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status