Revision 4d745aa2f670491f3a93a7ed534dad367a7d7b84 authored by David Anthoff on 07 March 2020, 14:17:05 UTC, committed by GitHub on 07 March 2020, 14:17:05 UTC
* Add devcontainer and dockerfile * Add VS Code CPP extension * Use Julia base image for devcontainer * Add VS Code make task * Fix typo * Remove .vscode/tasks.json
1 parent a247038
check-whitespace.sh
#!/bin/sh
# This file is a part of Julia. License is MIT: https://julialang.org/license
# Check for trailing white space in source files;
# report an error if so
# Files to check:
set -f # disable glob expansion in this script
file_patterns='
*.1
*.c
*.cpp
*.h
*.jl
*.lsp
*.scm
*.inc
*.make
*.mk
*.md
*.rst
*.sh
*.yml
*Makefile
'
# TODO: Look also for trailing empty lines, and missing '\n' after the last line
if git --no-pager grep --color -n --full-name -e ' $' -- $file_patterns; then
echo "Error: trailing whitespace found in source file(s)"
echo ""
echo "This can often be fixed with:"
echo " git rebase --whitespace=fix HEAD~1"
echo "or"
echo " git rebase --whitespace=fix master"
echo "and then a forced push of the correct branch"
exit 1
fi
Computing file changes ...