-
Notifications
You must be signed in to change notification settings - Fork 3
/
discloudconfig.json
124 lines (124 loc) · 2.72 KB
/
discloudconfig.json
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"rules": {
"ignore": "^\\s*(#.*)$",
"languageId": "discloud.config",
"location": "",
"messages": {
"missingequal": "diagnostic.equal.missing",
"missingscopes": "diagnostic.scopes.missing",
"missingseparator": "diagnostic.separator.missing",
"nospaces": "diagnostic.no.spaces",
"wrong": "diagnostic.wrong",
"wronglocation": "diagnostic.wrong.file.location"
},
"noSpaces": {
"message": "diagnostic.no.spaces",
"severity": "Error"
},
"noEndSpaces": {
"message": "diagnostic.no.end.spaces"
},
"scopes": [
"APT",
"AUTORESTART",
"AVATAR",
"ID",
"MAIN",
"NAME",
"RAM",
"TYPE",
"VERSION"
],
"separator": "="
},
"APT": {
"message": "diagnostic.apt.invalid",
"pattern": "(canvas|ffmpeg|java|libgl|openssl|puppeteer|tools)",
"allowSpaces": true,
"properties": [
"canvas",
"ffmpeg",
"java",
"libgl",
"openssl",
"puppeteer",
"tools"
],
"separatorPattern": ",\\s?",
"type": "string",
"completionItemKind": "Value"
},
"AUTORESTART": {
"message": "diagnostic.must.be.boolean",
"pattern": "^(false|true)$",
"properties": ["false", "true"],
"completionItemKind": "Keyword"
},
"AVATAR": {
"message": "diagnostic.avatar.must.be.url",
"pattern": "^((?:s?ftp|https?):\\/\\/)\\S+\\.(?:gif|jpe?g|png)(?:[?]\\S*)?$",
"type": "string"
},
"ID": {
"required": {
"when": {
"TYPE": "site"
}
}
},
"MAIN": {
"message": "diagnostic.main.not.exist",
"required": true,
"fs": {
"message": "diagnostic.main.not.exist"
},
"type": "string"
},
"NAME": {
"allowSpaces": true,
"required": {
"when": {
"TYPE": "bot"
}
}
},
"RAM": {
"message": "diagnostic.ram.must.be.number",
"minValue": {
"compare": "TYPE",
"message": "diagnostic.ram.must.be.higher",
"when": {
"all": {
"values": [100, 512]
},
"common": {
"value": 100
},
"bot": {
"value": 100
},
"site": {
"value": 512
}
}
},
"required": true,
"type": "number",
"completionItemKind": "Unit"
},
"TYPE": {
"message": "diagnostic.type.must.be",
"pattern": "^(bot|site)$",
"properties": ["bot", "site"],
"required": true,
"type": "string",
"completionItemKind": "Constant"
},
"VERSION": {
"message": "diagnostic.version.invalid",
"pattern": "^(current|latest|suja|(?:\\d+\\.[\\dx]+\\.[\\dx]+))$",
"properties": ["current", "latest", "suja"],
"required": true,
"completionItemKind": "Constant"
}
}