Skip to content

Commit

Permalink
dorothy: better logging for what is being linted
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jul 28, 2023
1 parent 30f44e8 commit f58088f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/dorothy
Original file line number Diff line number Diff line change
Expand Up @@ -1354,18 +1354,22 @@ function dorothy() (
# action
echo-segment --h2='Running Lint'
# on dorothy
echo-segment --h3="$DOROTHY"
pushd "$DOROTHY" >/dev/null
trunk upgrade # always upgrade as still buggy
trunk fmt --all "${args[@]}"
trunk check --all "${args[@]}"
popd >/dev/null
echo-segment --g3="$DOROTHY"
# on user configuration
if test -d "$DOROTHY/user/.trunk"; then
echo-segment --h3="$DOROTHY/user"
pushd "$DOROTHY/user" >/dev/null
trunk upgrade # always upgrade as still buggy
trunk fmt --all "${args[@]}"
trunk check --all "${args[@]}"
popd >/dev/null
echo-segment --g3="$DOROTHY/user"
fi
echo-segment --g2='Running Lint'

Expand Down

0 comments on commit f58088f

Please sign in to comment.