Add vehicle-h2-fee-ledger, customer-management, lease and self-operated ledgers, annotation sources, agent skills, and vite annotation runtime support. Update vehicle management, contract templates, and lease contract flows. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
import { getAntipattern } from './registry/antipatterns.mjs';
|
|
|
|
function getAP(id) {
|
|
return getAntipattern(id);
|
|
}
|
|
|
|
function finding(id, filePath, snippet, line = 0) {
|
|
const ap = getAP(id);
|
|
return { antipattern: id, name: ap.name, description: ap.description, severity: ap.severity || 'warning', file: filePath, line, snippet };
|
|
}
|
|
|
|
export { getAP, finding };
|