-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yml
More file actions
61 lines (48 loc) · 1.1 KB
/
Copy pathconfig.example.yml
File metadata and controls
61 lines (48 loc) · 1.1 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
# GitHub 项目代码相似度检测工具 - 配置文件
# 复制此文件为 config.yml 并根据需要修改
# 模块粒度: file / function / class
module_granularity: function
# 支持的编程语言
supported_languages:
- python
- java
- javascript
# 最小 Token 长度(低于此值的模块不参与检测)
min_token_length: 50
# 相似度阈值(0-100,低于此值的匹配不输出)
similarity_threshold: 70.0
# Winnowing 算法参数
winnowing_window_size: 5
winnowing_kgram_size: 15
# 报告格式: json / html / markdown
report_format: html
# 报告输出路径
output_path: ./report
# 并行检测进程数
parallelism: 4
# GitHub API 文件数限制(超过此值使用 git clone)
api_file_limit: 1000
# 是否启用指纹缓存
enable_cache: true
# 缓存目录
cache_dir: .cache
# 排除的目录
exclude_dirs:
- node_modules
- venv
- .git
- __pycache__
- dist
- build
- .idea
- target
- vendor
# 排除的文件模式
exclude_file_patterns:
- "*.min.js"
- "*.min.css"
- "*.test.*"
- "*.spec.*"
- "package-lock.json"
- "yarn.lock"
- "poetry.lock"