Skip to content

Commit

Permalink
Revert "Supporting exclusion when linting Bash scripts (#8)" (#9)
Browse files Browse the repository at this point in the history
This reverts commit 8ee9cdb.
  • Loading branch information
ubiratansoares authored Nov 5, 2023
1 parent 8ee9cdb commit 3a55b8d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bash-linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ docker run --rm -v "$target_folder:/mnt" -w /mnt "$docker_shmft" --diff .
echo

echo "→ Checking code smells (shellcheck)"

readonly gradle_wrapper_exclusion="-not -path ./gradle/*"
readonly find_with_execlusions="find /mnt -name '*.sh' $gradle_wrapper_exclusion"

docker run --rm -v "$target_folder:/mnt" "$docker_shellcheck" sh -c "$find_with_execlusions | xargs shellcheck"
docker run --rm -v "$target_folder:/mnt" "$docker_shellcheck" sh -c "find /mnt -name '*.sh' | xargs shellcheck"

echo
echo "✅ All good!"
Expand Down

0 comments on commit 3a55b8d

Please sign in to comment.