We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab4c05 commit a12c138Copy full SHA for a12c138
.github/actions/neo-lint/lint.sh
@@ -1,12 +1,15 @@
1
#!/bin/bash
2
3
#
4
-# Copyright (C) 2021 Intel Corporation
+# Copyright (C) 2021-2022 Intel Corporation
5
6
# SPDX-License-Identifier: MIT
7
8
9
set -e
10
+set -x
11
+
12
+git config --global --add safe.directory ${GITHUB_WORKSPACE}/neo
13
14
clang-format-11 --version
15
@@ -16,8 +19,9 @@ INPUT_IREGEX="${INPUT_IREGEX:-.*\.(cpp|h|inl)}"
16
19
(
17
20
cd ${INPUT_PATH}
18
21
git fetch origin ${GITHUB_BASE_REF}
22
+ git show
23
set -x
- git diff -U0 --no-color origin/master..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX}
24
+ git diff -U0 --no-color origin/${GITHUB_BASE_REF}..HEAD | clang-format-diff-11 -p1 -i -v -iregex ${INPUT_IREGEX}
25
set +x
26
)
27
0 commit comments