Skip to content

Commit 3199193

Browse files
committed
chore: 整理 json 及 schema
1 parent 2abf282 commit 3199193

File tree

6 files changed

+772
-726
lines changed

6 files changed

+772
-726
lines changed

.devcontainer/devcontainer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "MaaFramework-Ubuntu22.04",
3-
"build": {
4-
"dockerfile": "Dockerfile"
5-
}
6-
}
2+
"name": "MaaFramework-Ubuntu22.04",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
}
6+
}

.vscode/settings.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
"url": "/tools/pipeline.schema.json"
88
}
99
],
10+
"[json]": {
11+
"editor.formatOnSave": true,
12+
"editor.insertSpaces": true,
13+
"editor.tabSize": 4,
14+
"editor.indentSize": "tabSize"
15+
},
16+
"[python]": {
17+
"editor.defaultFormatter": "ms-python.black-formatter"
18+
},
1019
"cpplint.excludes": [
1120
"3rdparty",
1221
"build",
@@ -33,4 +42,4 @@
3342
"python.analysis.extraPaths": [
3443
"./source/binding/Python"
3544
]
36-
}
45+
}

CMakePresets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@
100100
"jobs": 16
101101
}
102102
]
103-
}
103+
}

cmake-format.json

+29-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
],
77
"additional_commands": {
88
"foo": {
9-
"flags": ["BAR", "BAZ"],
9+
"flags": [
10+
"BAR",
11+
"BAZ"
12+
],
1013
"kwargs": {
1114
"HEADERS": "*",
1215
"SOURCES": "*",
@@ -18,9 +21,13 @@
1821
"Override configurations per-command where available"
1922
],
2023
"override_spec": {},
21-
"_help_vartags": ["Specify variable tags."],
24+
"_help_vartags": [
25+
"Specify variable tags."
26+
],
2227
"vartags": [],
23-
"_help_proptags": ["Specify property tags."],
28+
"_help_proptags": [
29+
"Specify property tags."
30+
],
2431
"proptags": []
2532
},
2633
"_help_format": "Options affecting formatting.",
@@ -29,9 +36,13 @@
2936
"Disable formatting entirely, making cmake-format a no-op"
3037
],
3138
"disable": false,
32-
"_help_line_width": ["How wide to allow formatted cmake files"],
39+
"_help_line_width": [
40+
"How wide to allow formatted cmake files"
41+
],
3342
"line_width": 120,
34-
"_help_tab_size": ["How many spaces to tab for indent"],
43+
"_help_tab_size": [
44+
"How many spaces to tab for indent"
45+
],
3546
"tab_size": 4,
3647
"_help_use_tabchars": [
3748
"If true, lines are indented using tab characters (utf-8",
@@ -106,7 +117,9 @@
106117
"this many lines, then reject the layout."
107118
],
108119
"max_lines_hwrap": 2,
109-
"_help_line_ending": ["What style line endings to use in the output."],
120+
"_help_line_ending": [
121+
"What style line endings to use in the output."
122+
],
110123
"line_ending": "unix",
111124
"_help_command_case": [
112125
"Format command names consistently as 'lower' or 'upper' case"
@@ -146,7 +159,9 @@
146159
},
147160
"_help_markup": "Options affecting comment reflow and formatting.",
148161
"markup": {
149-
"_help_bullet_char": ["What character to use for bulleted lists"],
162+
"_help_bullet_char": [
163+
"What character to use for bulleted lists"
164+
],
150165
"bullet_char": "*",
151166
"_help_enum_char": [
152167
"What character to use as punctuation after numerals in an",
@@ -194,12 +209,16 @@
194209
"length to fill the column"
195210
],
196211
"canonicalize_hashrulers": true,
197-
"_help_enable_markup": ["enable comment markup parsing and reflow"],
212+
"_help_enable_markup": [
213+
"enable comment markup parsing and reflow"
214+
],
198215
"enable_markup": true
199216
},
200217
"_help_lint": "Options affecting the linter",
201218
"lint": {
202-
"_help_disabled_codes": ["a list of lint codes to disable"],
219+
"_help_disabled_codes": [
220+
"a list of lint codes to disable"
221+
],
203222
"disabled_codes": [],
204223
"_help_function_pattern": [
205224
"regular expression pattern describing valid function names"
@@ -289,4 +308,4 @@
289308
],
290309
"per_command": {}
291310
}
292-
}
311+
}

sample/resource/pipeline/sample.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"text": "Button",
3131
"action": "Click"
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)