pboling/sanitize_email

View on GitHub
bin/check_tab_chars

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash

# Absolutely no tab characters in any *.rb, *.yml, or *.yaml files.
(test $(grep -nR $'\t' --include="*.rb" --include="*.yml" --include="*.yaml" | tee pb_ruby_tabs_found.txt | wc -l) -eq "0" && \
  rm pb_ruby_tabs_found.txt) || \
  (cat pb_ruby_tabs_found.txt && rm pb_ruby_tabs_found.txt && exit 1)