You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If a user supplies an argument, that directory will be used as the start point for finding files that contain whitespace, otherwise the MOOSE directory
# will be used (one up from the scripts directory where this script is located)
REPO_DIR=${1:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../"}
echo "If you have clang-format installed, please use it instead of this script for C++ files."
if [ ! -d "$REPO_DIR" ]; then
echo "$REPO_DIR directory does not exist";
else
while read -rd '' fname; do
if grep -q "[[:space:]]$" "$fname"; then
echo "Removing trailing whitespace: $fname"
perl -pli -e "s/\s+$//" "$fname" # this would also fix EOF issues