refactor: add context keywords and improve hardcoded value suggestions

This commit is contained in:
imfozilbek
2025-11-27 19:27:07 +05:00
parent e8626dd03c
commit 07e6535633
3 changed files with 270 additions and 83 deletions

View File

@@ -80,3 +80,12 @@ export const ANEMIC_MODEL_MESSAGES = {
ENCAPSULATE_BUSINESS_RULES: "3. Encapsulate business rules inside entity methods",
USE_DOMAIN_EVENTS: "4. Use domain events to communicate state changes",
}
/**
* Example values used in violation messages
*/
export const VIOLATION_EXAMPLE_VALUES = {
UNKNOWN: "unknown",
USER_REPOSITORY: "UserRepository",
FIND_ONE: "findOne",
}