Skip to content

Instantly share code, notes, and snippets.

@grachevko
Created November 10, 2017 15:05
Show Gist options
  • Save grachevko/6ba65fafa3ae4f087b749ce9c52134f0 to your computer and use it in GitHub Desktop.
Save grachevko/6ba65fafa3ae4f087b749ce9c52134f0 to your computer and use it in GitHub Desktop.
TestMaxLineLenght.sh
test -z $(find -name "*.php" -type f -not -path "./src/Migrations/*" -not -path "./tests/*" | while read -r file; do cat $file | grep '.\{121\}'; done) || ((find -name "*.php" -type f -not -path "./src/Migrations/*" -not -path "./tests/*" | while read -r file; do cat $file | grep '.\{121\}'; done) && exit 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment