ignore external repos. be not so forgiving with the default settings
double quote to single quote, newlines
use && instead of and see http://stackoverflow.com/questions/1426826/difference-between-and-and-in-ruby
Favor unless over if for negative conditions
white space
Favor unless over if for negative conditions
a ruby method always has the value of the last expression
Favor not_if over only_if for negative conditions
single quotes and use the Ruby 1.9 hash literal syntax when your hash keys are symbols.
single instead of double quotes
do not shadow variable "file", use method
prefer not_if over only_if with ! or not
- prefer unless over If not
- move the . to the new line
- cpuVerndor => cpu_vendor
- 1.9 style hash for key as symbol
prefer not_if over only_if !
prefer || over or for boolean expression
prefer ruby 1.9 hash syntax over => for symbols
- use . on new line for method invocation
- avoid chaining multiline blocks
- prefer select over find_all
remove redundant self
Use :: only to reference constants(this includes classes and modules) and constructors (like Array() or Nokogiri::HTML()). Never use :: for regular method invocation.
ignore small NumericLiterals