-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path.deepsource.toml
More file actions
76 lines (64 loc) · 1.37 KB
/
.deepsource.toml
File metadata and controls
76 lines (64 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SPDX-FileCopyrightText: None
#
# SPDX-License-Identifier: CC0-1.0
version = 1
# 全局排除配置
exclude_patterns = [
"external/**",
"build/**",
"obj-*/**",
".cache/**",
".obs/**",
".tx/**",
"**/*.generated.*",
"**/CMakeCache.txt",
"**/compile_commands.json",
"debian/patches/**",
"po/*.po",
"po/*.pot",
"tools/openapi-c-libcurl-client/**",
]
# C++ 分析器配置
[[analyzers]]
name = "cxx"
enabled = true
[analyzers.meta]
misra_compliance = true
cyclomatic_complexity_threshold = "medium"
# Shell 脚本分析器配置
[[analyzers]]
name = "shell"
enabled = true
[analyzers.meta]
# 只保留官方支持的选项
dialect = "bash"
# 密钥检测分析器配置
[[analyzers]]
name = "secrets"
enabled = true
# secrets 分析器不支持任何 meta 配置
# 测试覆盖率分析器配置
[[analyzers]]
name = "test-coverage"
enabled = false
# 代码格式化器配置
[[transformers]]
name = "clang-format"
enabled = true
[transformers.meta]
exclude_patterns = ["external/**", "build/**", "obj-*/**", "**/*.generated.*"]
[[transformers]]
name = "prettier"
enabled = true
[transformers.meta]
include_patterns = ["**/*.md", "**/*.json", "**/*.yaml", "**/*.yml"]
exclude_patterns = [
"external/**",
"build/**",
"obj-*/**",
".cache/**",
"po/**",
"**/*.generated.*",
"package-lock.json",
"yarn.lock",
]