From 42340d6ba88f6848fa39dfdee82dba312c3b4955 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Wed, 30 Aug 2023 12:17:33 -0600 Subject: Remove cmake-format --- .cmake-format.py | 34 ---------------------------------- CONTRIBUTING.md | 15 --------------- 2 files changed, 49 deletions(-) delete mode 100644 .cmake-format.py diff --git a/.cmake-format.py b/.cmake-format.py deleted file mode 100644 index 07d2f99d..00000000 --- a/.cmake-format.py +++ /dev/null @@ -1,34 +0,0 @@ -# Configuration for cmake-format (v0.4.1, circa Jul 2018) -# https://github.com/cheshirekow/cmake_format - -# How wide to allow formatted cmake files -line_width = 132 - -# How many spaces to tab for indent -tab_size = 4 - -# If arglists are longer than this, break them always -max_subargs_per_line = 3 - -# If true, separate flow control names from their parentheses with a space -separate_ctrl_name_with_space = False - -# If true, separate function names from parentheses with a space -separate_fn_name_with_space = False - -# If a statement is wrapped to more than one line, than dangle the closing -# parenthesis on it's own line -dangle_parens = False - -# What character to use for bulleted lists -bullet_char = u'*' - -# What character to use as punctuation after numerals in an enumerated list -enum_char = u'.' - -# What style line endings to use in the output. -line_ending = u'unix' - -# Format command names consistently as 'lower' or 'upper' case -command_case = u'lower' - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e3d5f0f3..39101aed 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,21 +97,6 @@ scripts and before building and testing your changes. More details can be found * The indent is 4 spaces. * CMake functions are lower-case. * Variable and keyword names are upper-case. -* The format is defined by - [cmake-format](https://github.com/cheshirekow/cmake_format) - using the `.cmake-format.py` file in the repository to define the settings. - See the cmake-format page for information about its simple markup for comments. -* Disable reformatting of a block of comment lines by inserting - a `# ~~~` comment line before and after that block. -* Disable any formatting of a block of lines by surrounding that block with - `# cmake-format: off` and `# cmake-format: on` comment lines. -* To install: `sudo pip install cmake_format` -* To run: `cmake-format --in-place $FILENAME` -* **IMPORTANT (June 2018)** cmake-format v0.3.6 has a - [bug]( https://github.com/cheshirekow/cmake_format/issues/50) - that can corrupt the formatting of comment lines in CMake files. - A workaround is to use the following command _before_ running cmake-format: - `sed --in-place='' 's/^ *#/#/' $FILENAME` ### **Contributor License Agreement (CLA)** -- cgit v1.2.3