Skip to content

Instantly share code, notes, and snippets.

@lguardiola
Created May 29, 2013 13:24
Show Gist options
  • Save lguardiola/5670226 to your computer and use it in GitHub Desktop.
Save lguardiola/5670226 to your computer and use it in GitHub Desktop.
"some line shorter than 80 characters"
"some line longer than 80 characters some line longer than 80 characters some line longer than 80 characters"
SCRIPT_LINES__ = {}
require_relative "better_be_weel_formed_code"
# format: {"filename.rb" => ["line 1", "line 2", ...]}
if SCRIPT_LINES__.values.flatten.any?{|line| line.size > 80}
abort "Clean app your code first!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment