Files
schemaCheck/src/main/resources/default-config.yaml
dongzi cab3fea666
All checks were successful
缓存序列化结构检查 / cache-schema-check (push) Has been skipped
feat: 完成二阶段的优化处理
2026-07-14 15:49:40 +08:00

64 lines
1.7 KiB
YAML
Raw 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.

# cache-schema-checker 内置默认配置
# 业务仓库通过 --config 指定的配置会与本文件深度合并(业务配置优先)。
# 总开关false 时不执行检测、不发通知、流水线直接通过
enabled: true
# 运行模式notify仅通知| block检测到结构变更即阻断exit 1
mode: notify
# 是否扫描测试代码(第一版固定 false
scan_test_sources: false
# 源码扫描根目录(相对被检测模块)
source_roots:
- "src/main/java"
# 通知配置
notify:
enabled: true
webhook_url: ""
notify_on_clean: false
title_prefix: "[缓存结构变更]"
# 忽略规则
ignore:
# 忽略的 key 模式glob* 单层,** 多层)
key_patterns:
- "*:lock"
- "*:lock:*"
- "*lock*"
- "loginCount:*"
- "Authorization:*"
# 忽略的文件路径模式
file_patterns:
- "**/test/**"
# 忽略的写入方法(类全名#方法名)
writer_methods: []
# 检测规则
detection:
patterns:
- W01 # redisUtil.insert(key, JSON.toJSONString(x), ttl)
- W02 # redisTemplate.opsForValue().set(key, JSON.toJSONString(x), ...)
- W03 # stringRedisTemplate.opsForValue().set(key, JsonUtil.getObjectToString(x), ...)
- W04 # redisTemplate.opsForValue().set(key, obj, ...)
- W05 # redisTemplate.opsForHash().put(key, field, obj)
# 类型推断最低置信度,低于此值降级为 P2 提示
min_confidence: 0.6
# 字段展开最大深度(防止循环引用)
max_field_depth: 8
# 严重级别覆盖
severity_overrides: {}
# 人工补充映射
manual_mappings: []
# 抑制规则(已知误报)
suppressions: []
# 模块过滤(空表示全部模块)
include_modules: []
exclude_modules: []