From a8539ec7d175500feea52b514e7a507dbdf1d86d Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Fri, 8 Nov 2024 14:31:28 -0800 Subject: [PATCH] Ignore all whitespace lint messages for cpplint (#22781) ### Description Ignore all whitespace lint messages for cpplint. Remove redundant configs in dml/. ### Motivation and Context They are handled automatically by clang-format and creates too much noise in the PR files tab. --- CPPLINT.cfg | 1 + onnxruntime/core/providers/dml/CPPLINT.cfg | 1 - .../providers/dml/DmlExecutionProvider/src/External/CPPLINT.cfg | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 CPPLINT.cfg delete mode 100644 onnxruntime/core/providers/dml/CPPLINT.cfg diff --git a/CPPLINT.cfg b/CPPLINT.cfg new file mode 100644 index 0000000000..12c1c7be0d --- /dev/null +++ b/CPPLINT.cfg @@ -0,0 +1 @@ +filter=-whitespace diff --git a/onnxruntime/core/providers/dml/CPPLINT.cfg b/onnxruntime/core/providers/dml/CPPLINT.cfg deleted file mode 100644 index 02d14c65cc..0000000000 --- a/onnxruntime/core/providers/dml/CPPLINT.cfg +++ /dev/null @@ -1 +0,0 @@ -filter=-whitespace/braces,-whitespace/parens,-whitespace/line_length,-whitespace/indent,-whitespace/newline diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/CPPLINT.cfg b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/CPPLINT.cfg index bf14c49304..7e6be3c687 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/CPPLINT.cfg +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/CPPLINT.cfg @@ -1 +1 @@ -filter=-whitespace/comments,-readability/todo,-whitespace/end_of_line,-runtime/indentation_namespace +filter=-readability/todo