mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
check: use cmake format config file
This commit is contained in:
41
.cmake-format.yaml
Normal file
41
.cmake-format.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
parse:
|
||||||
|
additional_commands:
|
||||||
|
add_documentation:
|
||||||
|
pargs:
|
||||||
|
nargs: 1
|
||||||
|
flags:
|
||||||
|
- ALL
|
||||||
|
kwargs:
|
||||||
|
BREATHE_PROJECT: 1
|
||||||
|
CODE_SOURCE_DIR: 1
|
||||||
|
INSTALL_DIR: 1
|
||||||
|
CODE_DEPENDS: 1
|
||||||
|
DOCS_DEPENDS: 1
|
||||||
|
enable_iwyu:
|
||||||
|
pargs:
|
||||||
|
flags:
|
||||||
|
- NO_FORWARD_DECLARATIONS
|
||||||
|
- QUOTED_INCLUDES_FIRST
|
||||||
|
- NO_COMMENTS
|
||||||
|
kwargs:
|
||||||
|
MAPPING_FILE: 1
|
||||||
|
MAX_LINE_LENGTH: 1
|
||||||
|
metabench_add_chart:
|
||||||
|
pargs:
|
||||||
|
nargs: 1
|
||||||
|
kwargs:
|
||||||
|
TITLE: 1
|
||||||
|
SUBTITLE: 1
|
||||||
|
DATASETS: +
|
||||||
|
format:
|
||||||
|
line_width: 120
|
||||||
|
tab_size: 4
|
||||||
|
max_subgroups_hwrap: 3
|
||||||
|
max_pargs_hwrap: 6
|
||||||
|
max_rows_cmdline: 2
|
||||||
|
dangle_parens: true
|
||||||
|
min_prefix_chars: 8
|
||||||
|
max_prefix_chars: 8
|
||||||
|
max_lines_hwrap: 2
|
||||||
|
markup:
|
||||||
|
enable_markup: false
|
@@ -14,7 +14,7 @@ repos:
|
|||||||
rev: v0.6.13
|
rev: v0.6.13
|
||||||
hooks:
|
hooks:
|
||||||
- id: cmake-format
|
- id: cmake-format
|
||||||
additional_dependencies: ["cmakelang"]
|
additional_dependencies: ["cmakelang[YAML]"]
|
||||||
# - id: cmake-lint
|
# - id: cmake-lint
|
||||||
# additional_dependencies: ["cmakelang"]
|
# additional_dependencies: ["cmakelang"]
|
||||||
# exclude: "cmake/.*"
|
# exclude: "cmake/.*"
|
||||||
|
Reference in New Issue
Block a user