mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 07:16:53 +05:00
fix: reduce false positives in Repository Pattern detection
- Added 11 new valid DDD repository method patterns - Support for has*(), is*(), exists*(), clear*(), store*() methods - Support for lifecycle methods: initialize(), close(), connect(), disconnect() - Fixes issue where valid DDD patterns were flagged as violations - Better alignment with real-world Domain-Driven Design practices This reduces false positives in projects using cache repositories, connection management, and domain-specific query methods. Version: 0.6.3
This commit is contained in:
@@ -78,6 +78,17 @@ export class RepositoryPatternDetector implements IRepositoryPatternDetector {
|
||||
/^get[A-Z]/,
|
||||
/^search/,
|
||||
/^list/,
|
||||
/^has[A-Z]/,
|
||||
/^is[A-Z]/,
|
||||
/^exists[A-Z]/,
|
||||
/^existsBy[A-Z]/,
|
||||
/^clear[A-Z]/,
|
||||
/^clearAll$/,
|
||||
/^store[A-Z]/,
|
||||
/^initialize$/,
|
||||
/^close$/,
|
||||
/^connect$/,
|
||||
/^disconnect$/,
|
||||
]
|
||||
|
||||
private readonly concreteRepositoryPatterns = [
|
||||
|
||||
Reference in New Issue
Block a user