Skip to content

Commit

Permalink
Highlight lint output (lunchclass#186)
Browse files Browse the repository at this point in the history
When executing the lint command, the output is not readable because
all highlight tags are removed, so made it out to change the script
order a little.

ISSUE=lunchclass#164
  • Loading branch information
nadongguri authored and romandev committed Nov 15, 2017
1 parent 7bd9a0d commit 0dcf47a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap/command/lint
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@

. $BACARDI_PATH/bootstrap/common/path_info.sh

format_diff="$(bootstrap_command_path)/format --diff"

function need_to_format() {
result=$($(bootstrap_command_path)/format --diff)
result=$($format_diff)
if [ "$result" = "no modified files to format" ] \
|| [ "$result" = "clang-format did not modify any files" ]; then
return 1
else
echo "$result"
$format_diff
return 0
fi
}
Expand Down

0 comments on commit 0dcf47a

Please sign in to comment.