Skip to content

Commit 87aa410

Browse files
committed
DEBUG
1 parent c0c2159 commit 87aa410

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/run_diff.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -evx
44

55
script_folder=$(dirname "$0")
66
absolute_repository_root=$(git rev-parse --show-toplevel)
@@ -37,7 +37,7 @@ then
3737
echo "Ensure cpplint.py is inside the $script_folder directory then run again"
3838
exit 1
3939
else
40-
cmd='${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1 >/dev/null'
40+
cmd='${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1'
4141
fi
4242
else
4343
echo "Mode $mode not recognized"
@@ -92,6 +92,7 @@ for file in $diff_files; do
9292

9393
# Run the linting script and filter:
9494
# The errors from the linter go to STDERR so must be redirected to STDOUT
95+
${cmd}
9596
result=$(eval "${cmd}" | "${script_folder}/filter_by_lines.py" "$file" "$added_lines_file" "$absolute_repository_root")
9697

9798
# Providing some errors were relevant we print them out

0 commit comments

Comments
 (0)