UNPKG

debt-collector

Version:

a nodejs tool to identify, track and mesure technical debt

9 lines (8 loc) 705 B
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import { Text, Box } from 'ink'; import Table from '../Table.js'; import { filterNoMatch } from '../../lib/utils/index.js'; export function ResultsNoMatchRule({ results, initialConfig }) { const { notMatchRules, rulesCount } = filterNoMatch(results.results, initialConfig); return (_jsxs(_Fragment, { children: [_jsx(Box, { marginTop: 1 }), notMatchRules.length > 0 && _jsx(Table, { data: notMatchRules }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { bold: true, backgroundColor: "#880000", color: "white", children: ["Nb of rules with no match : ", notMatchRules.length, " /", rulesCount] }) })] })); }