Skip to content

Commit 15168f8

Browse files
committed
create a spec with resolved definitions
1 parent bf96a0e commit 15168f8

File tree

1 file changed

+184
-0
lines changed

1 file changed

+184
-0
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"$comment": "https://www.bettercodehub.com/docs/configuration-manual",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"additionalProperties": false,
5+
"definitions": {
6+
"supportedProgrammingLanguage": {
7+
"type": "string",
8+
"enum": [
9+
"csharp",
10+
"cpp",
11+
"go",
12+
"groovy",
13+
"java",
14+
"javascript",
15+
"objectivec",
16+
"perl",
17+
"php",
18+
"python",
19+
"ruby",
20+
"scala",
21+
"script",
22+
"solidity",
23+
"swift",
24+
"typescript",
25+
"kotlin"
26+
]
27+
},
28+
"excludeFileFilter": {
29+
"title": "Exclude",
30+
"type": "array",
31+
"items": {
32+
"title": "Pattern",
33+
"description": "A regular expression for the path(s) to exclude.",
34+
"type": "string"
35+
}
36+
},
37+
"fileFilter": {
38+
"type": "object",
39+
"additionalProperties": false,
40+
"properties": {
41+
"include": {
42+
"title": "Include",
43+
"type": "array",
44+
"items": {
45+
"title": "Pattern",
46+
"description": "A regular expression for the path(s) to include.",
47+
"type": "string"
48+
}
49+
},
50+
"exclude": {
51+
"$ref": "#/definitions/excludeFileFilter"
52+
}
53+
}
54+
}
55+
},
56+
"description": "Configuration file for Better Code Hub to override the default configuration.",
57+
"properties": {
58+
"component_depth": {
59+
"title": "Component Depth",
60+
"type": "integer",
61+
"default": 1
62+
},
63+
"languages": {
64+
"title": "Languages",
65+
"type": "array",
66+
"items": {
67+
"anyOf": [
68+
{
69+
"type": "string",
70+
"enum": [
71+
"csharp",
72+
"cpp",
73+
"go",
74+
"groovy",
75+
"java",
76+
"javascript",
77+
"objectivec",
78+
"perl",
79+
"php",
80+
"python",
81+
"ruby",
82+
"scala",
83+
"script",
84+
"solidity",
85+
"swift",
86+
"typescript",
87+
"kotlin"
88+
]
89+
},
90+
{
91+
"type": "object",
92+
"additionalProperties": false,
93+
"properties": {
94+
"name": {
95+
"title": "Name",
96+
"type": "string",
97+
"enum": [
98+
"csharp",
99+
"cpp",
100+
"go",
101+
"groovy",
102+
"java",
103+
"javascript",
104+
"objectivec",
105+
"perl",
106+
"php",
107+
"python",
108+
"ruby",
109+
"scala",
110+
"script",
111+
"solidity",
112+
"swift",
113+
"typescript",
114+
"kotlin"
115+
]
116+
},
117+
"production": {
118+
"title": "Production",
119+
"type": "object",
120+
"additionalProperties": false,
121+
"properties": {
122+
"include": {
123+
"title": "Include",
124+
"type": "array",
125+
"items": {
126+
"title": "Pattern",
127+
"description": "A regular expression for the path(s) to include.",
128+
"type": "string"
129+
}
130+
},
131+
"exclude": {
132+
"title": "Exclude",
133+
"type": "array",
134+
"items": {
135+
"title": "Pattern",
136+
"description": "A regular expression for the path(s) to exclude.",
137+
"type": "string"
138+
}
139+
}
140+
}
141+
},
142+
"test": {
143+
"title": "Test",
144+
"type": "object",
145+
"additionalProperties": false,
146+
"properties": {
147+
"include": {
148+
"title": "Include",
149+
"type": "array",
150+
"items": {
151+
"title": "Pattern",
152+
"description": "A regular expression for the path(s) to include.",
153+
"type": "string"
154+
}
155+
},
156+
"exclude": {
157+
"title": "Exclude",
158+
"type": "array",
159+
"items": {
160+
"title": "Pattern",
161+
"description": "A regular expression for the path(s) to exclude.",
162+
"type": "string"
163+
}
164+
}
165+
}
166+
}
167+
}
168+
}
169+
]
170+
}
171+
},
172+
"exclude": {
173+
"title": "Exclude",
174+
"type": "array",
175+
"items": {
176+
"title": "Pattern",
177+
"description": "A regular expression for the path(s) to exclude.",
178+
"type": "string"
179+
}
180+
}
181+
},
182+
"title": "Better Code Hub",
183+
"type": "object"
184+
}

0 commit comments

Comments
 (0)