Method: Codeguard.diff

Defined in:
lib/codeguard.rb

.diffObject



42
43
44
45
46
47
48
49
50
# File 'lib/codeguard.rb', line 42

def diff
  lints = LINTERS.map do |lint|
    diff = Diff.perform(lint)
    [diff.diff, diff.message]
  end
  transposed = lints.transpose
  puts transposed.first.compact
  puts transposed.last.compact
end