Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Strip from .coffee files when called with --all #3

Merged
merged 1 commit into from

2 participants

@jpignata

No description provided.

@nakajima nakajima merged commit 9b9c54c into nakajima:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 8, 2011
  1. @jpignata
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/whitespace
View
2  bin/whitespace
@@ -32,7 +32,7 @@ class WhitespaceProcessor
end
if ARGV.include?('--all')
- files = `find . -type file | grep -v .git | grep -v ./vendor | grep -v ./tmp | egrep ".(rb|js|haml|html|css|sass)"`.split(/\n/)
+ files = `find . -type file | grep -v .git | grep -v ./vendor | grep -v ./tmp | egrep ".(#{FILE_TYPES})"`.split(/\n/)
puts "* Stripping whitespace from all project files"
else
files = `git status | egrep ".(#{FILE_TYPES})"`.split("\n").select { |file| file =~ /^#\t(modified|new file|renamed):/ }
Something went wrong with that request. Please try again.