Skip to content

Instantly share code, notes, and snippets.

View kevmoo's full-sized avatar
🤘
Crankin!

Kevin Moore kevmoo

🤘
Crankin!
View GitHub Profile
@kevmoo
kevmoo / whitespace.rb
Created October 7, 2009 17:38
A ruby script for whitespace clean-up
#!/usr/bin/env ruby
# Take a file_name
# If there are any "bad" lines:
# => Print out the file name
# => Print out the offending line numbers
# => Overwrite the file with "good" lines
# You might want to make sure *everything* is in source control first
# It's "good form" to have mass white-space clean-up be a single check-in, too
def clean_whitespace(file_name)