This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
NewerOlder