Files

24 lines
829 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- id: no-console-log
severity: warning
description: 生产代码不应保留 console.log 调试语句
message: 请使用日志框架替代 console.log
languages: [javascript, typescript]
- id: naming-convention-camel
severity: info
description: JavaScript/TypeScript 变量和方法使用 camelCase 命名
message: 变量名应使用 camelCase(例如 userName 而非 user_name
languages: [javascript, typescript]
- id: naming-convention-pascal
severity: info
description: Java 类名使用 PascalCase
message: 类名应使用 PascalCase(例如 UserService 而非 userService
languages: [java]
- id: no-magic-numbers
severity: info
description: 禁止在代码中使用未命名的魔术数字
message: 请将魔法数字提取为命名常量
languages: [java, javascript, typescript]