feat: 删除pom
Some checks failed
Redis序列化结构检查 / redis-schema-check (push) Has been cancelled

This commit is contained in:
2026-07-13 15:54:38 +08:00
parent 436460cfdb
commit 30e530c0bf
39 changed files with 164 additions and 159 deletions

View File

@@ -0,0 +1,64 @@
# redis-schema-checker 内置默认配置
# 业务仓库通过 --config 指定的配置会与本文件深度合并(业务配置优先)。
# 运行模式notify仅通知| block按 block_severities 阻断exit 1
mode: notify
# block 模式下触发阻断的严重级别(默认全部阻断)
block_severities:
- P0
- P1
- P2
# 是否扫描测试代码(第一版固定 false
scan_test_sources: false
# 源码扫描根目录(相对被检测模块)
source_roots:
- "src/main/java"
# 通知配置
notify:
enabled: true
webhook_env: "WECOM_ROBOT_WEBHOOK"
notify_on_clean: false
title_prefix: "[Redis结构变更]"
# 忽略规则
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), ...)
# 类型推断最低置信度,低于此值降级为 P2 提示
min_confidence: 0.6
# 字段展开最大深度(防止循环引用)
max_field_depth: 8
# 严重级别覆盖
severity_overrides: {}
# 人工补充映射
manual_mappings: []
# 抑制规则(已知误报)
suppressions: []
# 模块过滤(空表示全部模块)
include_modules: []
exclude_modules: []