forked from NSPG13/agent-bounties
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-size-policy.json
More file actions
107 lines (107 loc) · 2.38 KB
/
Copy pathcode-size-policy.json
File metadata and controls
107 lines (107 loc) · 2.38 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"schema_version": "agent-bounties/code-size-policy-v1",
"metric": "nonblank_physical_lines",
"minimum_duplicate_lines": 8,
"groups": [
{
"name": "crates",
"prefixes": ["crates/"],
"extensions": [".rs", ".py", ".ts", ".js", ".mjs"]
},
{
"name": "scripts",
"prefixes": ["scripts/"],
"extensions": [".py", ".ps1", ".sh", ".js", ".mjs"]
},
{
"name": "site",
"prefixes": ["site/"],
"extensions": [".html", ".css", ".js"]
},
{
"name": "tools",
"prefixes": ["tools/"],
"extensions": [".py", ".js", ".mjs", ".sh", ".ps1"]
},
{
"name": "skills",
"prefixes": ["skills/"],
"path_contains": "/scripts/",
"extensions": [".py", ".js", ".mjs", ".sh", ".ps1"]
},
{
"name": "benchmarks",
"prefixes": ["benchmarks/"],
"extensions": [".py", ".js", ".mjs", ".sh", ".ps1"]
},
{
"name": "workflows",
"prefixes": [".github/workflows/"],
"extensions": [".yml", ".yaml"]
},
{
"name": "contract-tests",
"prefixes": ["contracts/base-escrow/test/"],
"extensions": [".sol"]
}
],
"pattern_groups": [
{
"name": "manifests",
"patterns": [
"Cargo.toml",
".cargo/config.toml",
"crates/*/Cargo.toml",
"crates/*/package.json",
"crates/*/pyproject.toml",
"scripts/requirements*.txt",
"contracts/base-escrow/foundry.toml"
]
},
{
"name": "github-config",
"patterns": [".github/dependabot.yml", ".github/ISSUE_TEMPLATE/*.yml"]
},
{
"name": "deploy-config",
"patterns": [
"Dockerfile",
"docker-compose.yml",
"docker-compose.production.yml",
"render.yaml"
]
},
{
"name": "ops-policy",
"patterns": ["ops/*.json"]
}
],
"protected_prefixes": [
"contracts/base-escrow/src/",
"contracts/base-escrow/script/",
"migrations/",
"deployments/",
"schemas/",
"bounties/",
"feeds/",
"docs/",
"evidence/",
"artifacts/",
"target/",
"node_modules/"
],
"protected_patterns": [
"**/migrations/**",
"**/deployments/**",
"**/schemas/**",
"**/fixtures/**",
"**/evidence/**",
"**/generated/**",
"*.lock",
"**/*.lock",
"package-lock.json",
"**/package-lock.json",
"*.md",
"**/*.md"
]
}