summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/checkpatch/checkpatch.conf (renamed from etc/checkpatch/config)3
-rw-r--r--etc/clang-tidy/config.yaml13
-rw-r--r--etc/cppcheck/cppcheck.suppress4
-rw-r--r--etc/cpplint/CPPLINT.cfg2
-rw-r--r--etc/cpplint/cpplint.cfg2
5 files changed, 22 insertions, 2 deletions
diff --git a/etc/checkpatch/config b/etc/checkpatch/checkpatch.conf
index b1a4b40..3bf7c0a 100644
--- a/etc/checkpatch/config
+++ b/etc/checkpatch/checkpatch.conf
@@ -6,7 +6,9 @@
--ignore COMPARISON_TO_NULL
--ignore COMPLEX_MACRO
--ignore CONCATENATED_STRING
+--ignore EMBEDDED_FUNCTION_NAME
--ignore FUNCTION_ARGUMENTS
+--ignore INDENTED_LABEL
--ignore INITIALISED_STATIC
--ignore LEADING_SPACE
--ignore LINE_SPACING
@@ -14,6 +16,7 @@
--ignore MACRO_ARG_REUSE
--ignore MULTIPLE_ASSIGNMENTS
--ignore OPEN_BRACE
+--ignore PARENTHESIS_ALIGNMENT
--ignore PREFER_FALLTHROUGH
--ignore PREFER_KERNEL_TYPES
--ignore SPACING
diff --git a/etc/clang-tidy/config.yaml b/etc/clang-tidy/config.yaml
index c9bcbae..d910b14 100644
--- a/etc/clang-tidy/config.yaml
+++ b/etc/clang-tidy/config.yaml
@@ -11,33 +11,46 @@ Checks: >
-android-cloexec-pipe,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
+ -bugprone-macro-parentheses,
-bugprone-reserved-identifier,
+ -cert-dcl16-c,
-cert-dcl37-c,
-cert-dcl51-cpp,
-cert-env33-c,
-cert-err33-c,
-cert-err34-c,
-cert-msc30-c,
+ -cert-msc32-c,
-cert-msc50-cpp,
+ -cert-msc51-cpp,
+ -clang-analyzer-optin.portability.UnixAPI,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
+ -clang-analyzer-security.insecureAPI.strcpy,
+ -clang-analyzer-unix.Malloc,
+ -clang-diagnostic-c2x-extensions,
-concurrency-mt-unsafe,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-init-variables,
-google-readability-braces-around-statements,
-hicpp-braces-around-statements,
-hicpp-no-assembler,
+ -hicpp-uppercase-literal-suffix,
-llvmlibc-restrict-system-libc-headers,
-misc-no-recursion,
+ -modernize-macro-to-enum,
-readability-braces-around-statements,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-isolate-declaration,
+ -readability-uppercase-literal-suffix,
WarningsAsErrors: >
*,
-altera-struct-pack-align,
-bugprone-narrowing-conversions,
+ -clang-diagnostic-declaration-after-statement,
-clang-diagnostic-format,
+ -clang-diagnostic-format-invalid-specifier,
-clang-diagnostic-sign-compare,
-clang-diagnostic-uninitialized,
-clang-diagnostic-unused-parameter,
diff --git a/etc/cppcheck/cppcheck.suppress b/etc/cppcheck/cppcheck.suppress
index cd9806b..c8a7f91 100644
--- a/etc/cppcheck/cppcheck.suppress
+++ b/etc/cppcheck/cppcheck.suppress
@@ -1,4 +1,8 @@
+checkersReport
ConfigurationNotChecked
+constParameter
+constParameterCallback
+knownConditionTrueFalse
missingIncludeSystem
redundantContinue
unassignedVariable
diff --git a/etc/cpplint/CPPLINT.cfg b/etc/cpplint/CPPLINT.cfg
deleted file mode 100644
index 7bdd508..0000000
--- a/etc/cpplint/CPPLINT.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-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
-
diff --git a/etc/cpplint/cpplint.cfg b/etc/cpplint/cpplint.cfg
new file mode 100644
index 0000000..b0b018d
--- /dev/null
+++ b/etc/cpplint/cpplint.cfg
@@ -0,0 +1,2 @@
+filter=-build/include_order,-build/include_subdir,-legal/copyright,-readability/alt_tokens,-readability/braces,-readability/casting,-readability/multiline_comment,-runtime/int,-runtime/printf,-runtime/threadsafe_fn,-whitespace/blank_line,-whitespace/braces,-whitespace/parens
+