This commit is contained in:
parent
739a534ac2
commit
f237916291
165 changed files with 79237 additions and 0 deletions
12
.agents/skills/impeccable/scripts/detector/findings.mjs
Normal file
12
.agents/skills/impeccable/scripts/detector/findings.mjs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue