Skip to content

Commit eb0fee1

Browse files
committed
fix: wire customIgnorePaths from config into findAllFiles glob ignore list
1 parent e324ee5 commit eb0fee1

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

ai-slop-detector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ class AISlopDetector {
495495
'**/lib/**', // Generated library files
496496
'scripts/ai-slop-detector.ts', // Exclude the detector script itself to avoid false positives
497497
'ai-slop-detector.ts', // Also exclude when in root directory
498-
'improved-ai-slop-detector.ts' // Exclude the improved detector script to avoid false positives
498+
'improved-ai-slop-detector.ts', // Exclude the improved detector script to avoid false positives
499+
...this.customIgnorePaths
499500
]
500501
});
501502

karpeslop-bin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ class AISlopDetector {
405405
// Exclude the detector script itself to avoid false positives
406406
'ai-slop-detector.ts',
407407
// Also exclude when in root directory
408-
'improved-ai-slop-detector.ts' // Exclude the improved detector script to avoid false positives
409-
]
408+
'improved-ai-slop-detector.ts',
409+
// Exclude the improved detector script to avoid false positives
410+
...this.customIgnorePaths]
410411
});
411412

412413
// Additional filtering to remove any generated files that may have slipped through

0 commit comments

Comments
 (0)