UNPKG

@sun-asterisk/sunlint

Version:

☀️ SunLint - Multi-language static analysis tool for code quality and security | Sun* Engineering Standards

51 lines (50 loc) 1.01 kB
{ "id": "C024", "name": "C024_do_not_scatter_hardcoded_constants_throughout_the_logic", "category": "architecture", "description": "C024 - Do not scatter hardcoded constants throughout the logic.", "severity": "warning", "enabled": true, "semantic": { "enabled": true, "priority": "high", "fallback": "heuristic" }, "patterns": { "include": [ "**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx" ], "exclude": [ "**/*.test.*", "**/*.spec.*", "**/*.mock.*", "**/test/**", "**/tests/**", "**/spec/**" ] }, "options": { "strictMode": false, "allowedDbMethods": [], "repositoryPatterns": [ "*Repository*", "*Repo*", "*DAO*", "*Store*" ], "servicePatterns": [ "*Service*", "*UseCase*", "*Handler*", "*Manager*" ], "complexityThreshold": { "methodLength": 200, "cyclomaticComplexity": 5, "nestedDepth": 3 } } }