module Terracop::Cop

This namespace holds all the individual Cop (checks).

Public Class Methods

all() click to toggle source
# File lib/terracop/cop/base.rb, line 7
def all
  @all ||= []
end
run_for(type, name, index, attributes) click to toggle source
# File lib/terracop/cop/base.rb, line 11
def run_for(type, name, index, attributes)
  offenses = all.map do |cop|
    cop.run(type, name, index, attributes)
  end

  offenses.flatten.compact
end