From 0eb3757008c5a3164593886fe949744d6a20a53f Mon Sep 17 00:00:00 2001 From: cos Date: Sun, 13 Jul 2025 15:26:24 +0200 Subject: [PATCH] Configure linters to project style --- .cmake-format.py | 10 ++++++++++ .cmakelintrc | 1 + 2 files changed, 11 insertions(+) create mode 100644 .cmake-format.py create mode 100644 .cmakelintrc diff --git a/.cmake-format.py b/.cmake-format.py new file mode 100644 index 000000000..589c2f1dd --- /dev/null +++ b/.cmake-format.py @@ -0,0 +1,10 @@ +with section("format"): + disable = True + line_width = 120 + +with section("lint"): + disabled_codes = [ + 'C0103', # Invalid argument name + 'C0305', # Too many newlines between statements + 'C0307', # Bad indentation + ] diff --git a/.cmakelintrc b/.cmakelintrc new file mode 100644 index 000000000..243c13e12 --- /dev/null +++ b/.cmakelintrc @@ -0,0 +1 @@ +filter=-linelength,readability/logic,-whitespace/extra,-whitespace/mismatch