Skip to content

Commit

Permalink
chore: 整理 json 及 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 19, 2024
1 parent 2abf282 commit 3199193
Show file tree
Hide file tree
Showing 6 changed files with 772 additions and 726 deletions.
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MaaFramework-Ubuntu22.04",
"build": {
"dockerfile": "Dockerfile"
}
}
"name": "MaaFramework-Ubuntu22.04",
"build": {
"dockerfile": "Dockerfile"
}
}
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"url": "/tools/pipeline.schema.json"
}
],
"[json]": {
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.indentSize": "tabSize"
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"cpplint.excludes": [
"3rdparty",
"build",
Expand All @@ -33,4 +42,4 @@
"python.analysis.extraPaths": [
"./source/binding/Python"
]
}
}
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@
"jobs": 16
}
]
}
}
39 changes: 29 additions & 10 deletions cmake-format.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
],
"additional_commands": {
"foo": {
"flags": ["BAR", "BAZ"],
"flags": [
"BAR",
"BAZ"
],
"kwargs": {
"HEADERS": "*",
"SOURCES": "*",
Expand All @@ -18,9 +21,13 @@
"Override configurations per-command where available"
],
"override_spec": {},
"_help_vartags": ["Specify variable tags."],
"_help_vartags": [
"Specify variable tags."
],
"vartags": [],
"_help_proptags": ["Specify property tags."],
"_help_proptags": [
"Specify property tags."
],
"proptags": []
},
"_help_format": "Options affecting formatting.",
Expand All @@ -29,9 +36,13 @@
"Disable formatting entirely, making cmake-format a no-op"
],
"disable": false,
"_help_line_width": ["How wide to allow formatted cmake files"],
"_help_line_width": [
"How wide to allow formatted cmake files"
],
"line_width": 120,
"_help_tab_size": ["How many spaces to tab for indent"],
"_help_tab_size": [
"How many spaces to tab for indent"
],
"tab_size": 4,
"_help_use_tabchars": [
"If true, lines are indented using tab characters (utf-8",
Expand Down Expand Up @@ -106,7 +117,9 @@
"this many lines, then reject the layout."
],
"max_lines_hwrap": 2,
"_help_line_ending": ["What style line endings to use in the output."],
"_help_line_ending": [
"What style line endings to use in the output."
],
"line_ending": "unix",
"_help_command_case": [
"Format command names consistently as 'lower' or 'upper' case"
Expand Down Expand Up @@ -146,7 +159,9 @@
},
"_help_markup": "Options affecting comment reflow and formatting.",
"markup": {
"_help_bullet_char": ["What character to use for bulleted lists"],
"_help_bullet_char": [
"What character to use for bulleted lists"
],
"bullet_char": "*",
"_help_enum_char": [
"What character to use as punctuation after numerals in an",
Expand Down Expand Up @@ -194,12 +209,16 @@
"length to fill the column"
],
"canonicalize_hashrulers": true,
"_help_enable_markup": ["enable comment markup parsing and reflow"],
"_help_enable_markup": [
"enable comment markup parsing and reflow"
],
"enable_markup": true
},
"_help_lint": "Options affecting the linter",
"lint": {
"_help_disabled_codes": ["a list of lint codes to disable"],
"_help_disabled_codes": [
"a list of lint codes to disable"
],
"disabled_codes": [],
"_help_function_pattern": [
"regular expression pattern describing valid function names"
Expand Down Expand Up @@ -289,4 +308,4 @@
],
"per_command": {}
}
}
}
2 changes: 1 addition & 1 deletion sample/resource/pipeline/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"text": "Button",
"action": "Click"
}
}
}
Loading

0 comments on commit 3199193

Please sign in to comment.