mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-08 15:32:14 +08:00
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# Copyright © 2024 OpenIM. All rights reserved.
|
||
#
|
||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
# you may not use this file except in compliance with the License.
|
||
# You may obtain a copy of the License at
|
||
#
|
||
# http://www.apache.org/licenses/LICENSE-2.0
|
||
#
|
||
# Unless required by applicable law or agreed to in writing, software
|
||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
# See the License for the specific language governing permissions and
|
||
# limitations under the License.
|
||
|
||
# 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
|