CRAP |
Complexity |
Coverage |
Location |
4.00 |
4 |
3/3 (100.00%) |
crap/lint.service.ts
(L54 - L67)
|
const overlappingLintFunctions = lintReport.filter((lintFunction): lintFunction is FunctionComplexity => {
if (!lintFunction || lintFunction.type !== type) {
return false;
}
/*
* The istanbul function is reported sometimes to start just before the range reported by ESLint,
* so we also check for the end of the range.
*/
return (
locationIsInRange({ location: coverageFunction.loc.start, range: lintFunction }) ||
locationIsInRange({ location: coverageFunction.loc.end, range: lintFunction })
);
});