From 3691fecf4318185c5a0f1e09173e568b7cd9c375 Mon Sep 17 00:00:00 2001 From: Matthias Hertel Date: Sat, 2 Dec 2023 13:01:23 +0100 Subject: [PATCH] formatting hints --- .clang-format | 5 +---- .markdownlint.json | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .markdownlint.json diff --git a/.clang-format b/.clang-format index 211378d..d86ae43 100644 --- a/.clang-format +++ b/.clang-format @@ -57,9 +57,6 @@ BreakBeforeTernaryOperators: true BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon BreakStringLiterals: false -# v12 has various problems with this set to 0 (no limit) -# possible workaround is to set this to 4294967295 aka some large number -# see https://reviews.llvm.org/D96896 ColumnLimit: 0 # "" matches none CommentPragmas: "" @@ -117,7 +114,7 @@ PenaltyReturnTypeOnItsOwnLine: 1 # Used as a fallback if alignment style can't be detected from code (DerivePointerAlignment: true) PointerAlignment: Right RawStringFormats: [] -ReflowComments: true +ReflowComments: false SortIncludes: false SortUsingDeclarations: false SpaceAfterCStyleCast: false diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..197bc6d --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,23 @@ +{ + "default": true, + "no-hard-tabs": true, + "no-trailing-spaces": true, + "blank_lines": true, + "no-multiple-blanks": { + "maximum": 2 + }, + "ul-indent": { + "indent": 2 + }, + "ul-style": { + "style": "asterisk" + }, + "line-length": false, + "no-inline-html": false, + "code-block-style": { + "style": "fenced" + }, + "no-duplicate-header": { + "allow_different_nesting": true + } +} \ No newline at end of file