-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
53 lines (47 loc) · 1.48 KB
/
.gitattributes
File metadata and controls
53 lines (47 loc) · 1.48 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
# 只统计 Java、Go、Markdown,其他全部隐藏
# 允许统计的语言(显式声明)
*.java linguist-detectable=true
*.go linguist-detectable=true
*.md linguist-detectable=true
*.markdown linguist-detectable=true
# 隐藏所有前端相关
*.js linguist-detectable=false
*.jsx linguist-detectable=false
*.ts linguist-detectable=false
*.tsx linguist-detectable=false
*.vue linguist-detectable=false
*.mjs linguist-detectable=false
*.cjs linguist-detectable=false
*.css linguist-detectable=false
*.scss linguist-detectable=false
*.sass linguist-detectable=false
*.less linguist-detectable=false
*.html linguist-detectable=false
*.htm linguist-detectable=false
# 隐藏配置文件
*.json linguist-detectable=false
*.yaml linguist-detectable=false
*.yml linguist-detectable=false
*.xml linguist-detectable=false
*.toml linguist-detectable=false
*.ini linguist-detectable=false
# 隐藏脚本语言
*.sh linguist-detectable=false
*.bash linguist-detectable=false
*.py linguist-detectable=false
*.rb linguist-detectable=false
*.php linguist-detectable=false
# 隐藏其他常见语言
*.c linguist-detectable=false
*.cpp linguist-detectable=false
*.h linguist-detectable=false
*.cs linguist-detectable=false
*.rs linguist-detectable=false
*.kt linguist-detectable=false
*.swift linguist-detectable=false
# 标记构建产物和依赖为第三方代码(不统计)
dist/* linguist-vendored
build/* linguist-vendored
target/* linguist-vendored
node_modules/* linguist-vendored
vendor/* linguist-vendored