@sun-asterisk/sunlint
Version:
☀️ SunLint - Multi-language static analysis tool for code quality and security | Sun* Engineering Standards
76 lines • 1.46 kB
JSON
{
"id": "C035_error_logging_context",
"name": "C035_error_logging_context",
"category": "architecture",
"description": "C035 - Khi x\u1eed l\u00fd l\u1ed7i, ph\u1ea3i ghi log \u0111\u1ea7y \u0111\u1ee7 th\u00f4ng tin li\u00ean quan",
"severity": "warning",
"enabled": true,
"semantic": {
"enabled": true,
"priority": "high",
"fallback": "heuristic"
},
"patterns": {
"include": [
"**/*.js",
"**/*.ts",
"**/*.jsx",
"**/*.tsx"
],
"exclude": [
"**/*.test.js",
"**/*.test.ts",
"**/*.spec.js",
"**/*.spec.ts",
"**/node_modules/**",
"**/dist/**",
"**/build/**"
]
},
"analysis": {
"approach": "symbol-based-primary",
"fallback": "regex-based",
"depth": 2,
"timeout": 5000
},
"validation": {
"requiredContext": [
"error_message",
"identifier",
"context"
],
"sensitivePatterns": [
"password",
"passwd",
"pwd",
"token",
"jwt",
"auth",
"secret",
"key",
"apikey",
"privatekey",
"ssn",
"credit",
"card",
"cvv"
],
"loggerPatterns": [
"console.log",
"console.error",
"console.warn",
"logger.log",
"logger.error",
"logger.warn",
"logger.info",
"log.error",
"log.warn",
"log.info"
]
},
"languages": [
"typescript",
"javascript",
"dart"
]
}