do not fix automatically

pull/13913/head
ncteisen 7 years ago
parent c4aba517a5
commit 479067b2b5
  1. 4
      tools/distrib/clang_tidy_code.sh
  2. 2
      tools/dockerfile/grpc_clang_tidy/clang_tidy_all_the_things.sh

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
echo "NOTE: to automagically apply fixes, invoke with --fix"
set -ex
# change to root directory
@ -27,5 +29,5 @@ then
# run clang-tidy against the checked out codebase
docker run -e TEST=$TEST -e CHANGED_FILES="$CHANGED_FILES" -e CLANG_TIDY_ROOT="/local-code" --rm=true -v "${REPO_ROOT}":/local-code -t grpc_clang_tidy /clang_tidy_all_the_things.sh "$@"
else
CLANG_TIDY_ROOT="${REPO_ROOT}" tools/dockerfile/grpc_clang_tidy/clang_tidy_all_the_things.sh
CLANG_TIDY_ROOT="${REPO_ROOT}" tools/dockerfile/grpc_clang_tidy/clang_tidy_all_the_things.sh "$@"
fi

@ -21,4 +21,4 @@ CLANG_TIDY=${CLANG_TIDY:-clang-tidy-5.0}
cd ${CLANG_TIDY_ROOT}
find src/core src/cpp test/core test/cpp -name '*.h' -or -name '*.cc' -print0 \
| xargs -0 tools/distrib/run_clang_tidy.py --fix
| xargs -0 tools/distrib/run_clang_tidy.py "$@"

Loading…
Cancel
Save