Commit 0128bd1e authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'yaml-configs'

339f8e21 config: configure the yaml files before installation
615361a6

 yaml: update for changes in the ghostflow code
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !2
parents d11b0ade 339f8e21
......@@ -35,9 +35,13 @@ function (install_formatter name)
PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/format.${name}"
DESTINATION "bin"
COMPONENT "formatters")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${name}.yaml.in"
"${CMAKE_CURRENT_BINARY_DIR}/${name}.yaml"
@ONLY)
install(
FILES "${CMAKE_CURRENT_SOURCE_DIR}/${name}.yaml"
DESTINATION "share/formatters/examples"
FILES "${CMAKE_CURRENT_BINARY_DIR}/${name}.yaml"
DESTINATION "share/formatters/config"
COMPONENT "examples")
endfunction ()
......
formatter_clang-format:
kind: "clang-format"
script: "/PATH/TO/format.clang-format"
required_files:
script: "@CMAKE_INSTALL_PREFIX@/bin/format.clang-format"
config_files:
- ".clang-format"
formatter_autopep8:
kind: "autopep8"
script: "/PATH/TO/format.autopep8"
required_files:
script: "@CMAKE_INSTALL_PREFIX@/bin/format.autopep8"
config_files:
- "tox.ini"
- "setup.cfg"
# This script is only suitable for checking, not reformatting.
formatter_flake8:
kind: "flake8"
script: "/PATH/TO/format.flake8"
required_files:
script: "@CMAKE_INSTALL_PREFIX@/bin/format.flake8"
config_files:
- "tox.ini"
- "setup.cfg"
# This script is only suitable for checking, not reformatting.
formatter_pep8:
kind: "pep8"
script: "/PATH/TO/format.pep8"
required_files:
script: "@CMAKE_INSTALL_PREFIX@/bin/format.pep8"
config_files:
- "tox.ini"
- "setup.cfg"
formatter_rustfmt:
kind: "rustfmt"
script: "/PATH/TO/format.rustfmt"
required_files:
script: "@CMAKE_INSTALL_PREFIX@/bin/format.rustfmt"
config_files:
- ".rustfmt.toml"
- "rustfmt.toml"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment