summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:40:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:40:15 +0000
commit399644e47874bff147afb19c89228901ac39340e (patch)
tree1c4c0b733f4c16b5783b41bebb19194a9ef62ad1 /etc
parentInitial commit. (diff)
downloadmanpages-399644e47874bff147afb19c89228901ac39340e.tar.xz
manpages-399644e47874bff147afb19c89228901ac39340e.zip
Adding upstream version 6.05.01.upstream/6.05.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/checkpatch/config33
-rw-r--r--etc/clang-tidy/config.yaml51
-rw-r--r--etc/cppcheck/cppcheck.suppress8
-rw-r--r--etc/cpplint/CPPLINT.cfg2
4 files changed, 94 insertions, 0 deletions
diff --git a/etc/checkpatch/config b/etc/checkpatch/config
new file mode 100644
index 0000000..b1a4b40
--- /dev/null
+++ b/etc/checkpatch/config
@@ -0,0 +1,33 @@
+--ignore AVOID_EXTERNS
+--ignore BLOCK_COMMENT_STYLE
+--ignore BRACES
+--ignore CAMELCASE
+--ignore CODE_INDENT
+--ignore COMPARISON_TO_NULL
+--ignore COMPLEX_MACRO
+--ignore CONCATENATED_STRING
+--ignore FUNCTION_ARGUMENTS
+--ignore INITIALISED_STATIC
+--ignore LEADING_SPACE
+--ignore LINE_SPACING
+--ignore LOGICAL_CONTINUATIONS
+--ignore MACRO_ARG_REUSE
+--ignore MULTIPLE_ASSIGNMENTS
+--ignore OPEN_BRACE
+--ignore PREFER_FALLTHROUGH
+--ignore PREFER_KERNEL_TYPES
+--ignore SPACING
+--ignore SPDX_LICENSE_TAG
+--ignore SPLIT_STRING
+--ignore STATIC_CONST_CHAR_ARRAY
+--ignore SUSPECT_CODE_INDENT
+--ignore TRAILING_STATEMENTS
+--ignore UNNECESSARY_PARENTHESES
+--ignore VOLATILE
+
+--no-tree
+--quiet
+--root=.
+--show-types
+--strict
+--verbose
diff --git a/etc/clang-tidy/config.yaml b/etc/clang-tidy/config.yaml
new file mode 100644
index 0000000..c9bcbae
--- /dev/null
+++ b/etc/clang-tidy/config.yaml
@@ -0,0 +1,51 @@
+---
+Checks: >
+ *,
+ -altera-id-dependent-backward-branch,
+ -altera-unroll-loops,
+ -android-cloexec-accept,
+ -android-cloexec-dup,
+ -android-cloexec-fopen,
+ -android-cloexec-memfd-create,
+ -android-cloexec-open,
+ -android-cloexec-pipe,
+ -bugprone-easily-swappable-parameters,
+ -bugprone-implicit-widening-of-multiplication-result,
+ -bugprone-reserved-identifier,
+ -cert-dcl37-c,
+ -cert-dcl51-cpp,
+ -cert-env33-c,
+ -cert-err33-c,
+ -cert-err34-c,
+ -cert-msc30-c,
+ -cert-msc50-cpp,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
+ -concurrency-mt-unsafe,
+ -cppcoreguidelines-avoid-non-const-global-variables,
+ -cppcoreguidelines-init-variables,
+ -google-readability-braces-around-statements,
+ -hicpp-braces-around-statements,
+ -hicpp-no-assembler,
+ -llvmlibc-restrict-system-libc-headers,
+ -misc-no-recursion,
+ -readability-braces-around-statements,
+ -readability-function-cognitive-complexity,
+ -readability-identifier-length,
+ -readability-isolate-declaration,
+
+WarningsAsErrors: >
+ *,
+ -altera-struct-pack-align,
+ -bugprone-narrowing-conversions,
+ -clang-diagnostic-format,
+ -clang-diagnostic-sign-compare,
+ -clang-diagnostic-uninitialized,
+ -clang-diagnostic-unused-parameter,
+ -cppcoreguidelines-avoid-magic-numbers,
+ -cppcoreguidelines-narrowing-conversions,
+ -hicpp-multiway-paths-covered,
+ -hicpp-signed-bitwise,
+ -misc-unused-parameters,
+ -performance-no-int-to-ptr,
+ -readability-magic-numbers,
+...
diff --git a/etc/cppcheck/cppcheck.suppress b/etc/cppcheck/cppcheck.suppress
new file mode 100644
index 0000000..cd9806b
--- /dev/null
+++ b/etc/cppcheck/cppcheck.suppress
@@ -0,0 +1,8 @@
+ConfigurationNotChecked
+missingIncludeSystem
+redundantContinue
+unassignedVariable
+uninitvar
+unknownMacro
+unmatchedSuppression
+variableScope
diff --git a/etc/cpplint/CPPLINT.cfg b/etc/cpplint/CPPLINT.cfg
new file mode 100644
index 0000000..7bdd508
--- /dev/null
+++ b/etc/cpplint/CPPLINT.cfg
@@ -0,0 +1,2 @@
+filter=-build/include_subdir,-legal/copyright,-readability/alt_tokens,-readability/braces,-readability/casting,-readability/multiline_comment,-runtime/int,-runtime/threadsafe_fn,-whitespace/blank_line,-whitespace/braces
+