mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-07 05:42:08 +08:00
feat: add tools formitychecker
This commit is contained in:
parent
f75506b230
commit
e748ffa67c
47
tools/formitychecker/config.yaml
Normal file
47
tools/formitychecker/config.yaml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# config.yaml 示例配置
|
||||||
|
|
||||||
|
# 基础配置
|
||||||
|
baseConfig:
|
||||||
|
searchDirectory: "./" # 检索的根目录,"./" 代表当前目录
|
||||||
|
ignoreCase: false # 是否忽略大小写,true 为忽略,false 为区分大小写
|
||||||
|
|
||||||
|
# 目录命名风格配置
|
||||||
|
directoryNaming:
|
||||||
|
allowHyphens: true # 是否允许目录名中含有中划线
|
||||||
|
allowUnderscores: false # 是否允许目录名中含有下划线
|
||||||
|
mustBeLowercase: true # 目录名是否必须为小写
|
||||||
|
|
||||||
|
# 文件命名风格配置
|
||||||
|
fileNaming:
|
||||||
|
allowHyphens: true # 是否允许文件名中含有中划线
|
||||||
|
allowUnderscores: true # 是否允许文件名中含有下划线
|
||||||
|
mustBeLowercase: true # 文件名是否必须为小写
|
||||||
|
|
||||||
|
# 忽略的文件格式列表
|
||||||
|
ignoreFormats:
|
||||||
|
- ".log"
|
||||||
|
- ".env"
|
||||||
|
- "_test.go"
|
||||||
|
|
||||||
|
# 忽略的目录列表
|
||||||
|
ignoreDirectories:
|
||||||
|
- "vendor"
|
||||||
|
- ".git"
|
||||||
|
- "node_modules"
|
||||||
|
- "logs"
|
||||||
|
- "components"
|
||||||
|
- "_output"
|
||||||
|
- "README.md"
|
||||||
|
- "tools/openim-web"
|
||||||
|
- "CHANGELOG"
|
||||||
|
- "docs/readme"
|
||||||
|
|
||||||
|
fileTypeSpecificNaming:
|
||||||
|
".yaml":
|
||||||
|
allowHyphens: true
|
||||||
|
allowUnderscores: false
|
||||||
|
mustBeLowercase: true
|
||||||
|
".go":
|
||||||
|
allowHyphens: false
|
||||||
|
allowUnderscores: true
|
||||||
|
mustBeLowercase: true
|
||||||
Loading…
x
Reference in New Issue
Block a user