Module: Terracop::Cop
- Defined in:
- lib/terracop/cop/base.rb,
lib/terracop/cop/aws/open_ssh.rb,
lib/terracop/cop/aws/ensure_tags.rb,
lib/terracop/cop/aws/open_egress.rb,
lib/terracop/cop/aws/wide_egress.rb,
lib/terracop/cop/aws/open_ingress.rb,
lib/terracop/cop/aws/wide_ingress.rb,
lib/terracop/cop/style/snake_case.rb,
lib/terracop/cop/aws/fault_intolerant.rb,
lib/terracop/cop/aws/iam_inline_policy.rb,
lib/terracop/cop/aws/bad_password_policy.rb,
lib/terracop/cop/aws/iam_policy_attachment.rb,
lib/terracop/cop/aws/ensure_propagated_tags.rb,
lib/terracop/cop/aws/prefer_launch_templates.rb,
lib/terracop/cop/aws/security_group_rule_cop.rb,
lib/terracop/cop/style/dash_in_resource_name.rb,
lib/terracop/cop/style/resource_type_in_name.rb,
lib/terracop/cop/aws/unrestricted_egress_ports.rb,
lib/terracop/cop/aws/unrestricted_ingress_ports.rb,
lib/terracop/cop/aws/describe_security_group_rules.rb
Overview
This namespace holds all the individual Cop (checks).
Defined Under Namespace
Modules: Aws, Style Classes: Base
Class Method Summary collapse
Class Method Details
.all ⇒ Object
7 8 9 |
# File 'lib/terracop/cop/base.rb', line 7 def all @all ||= [] end |
.run_for(type, name, index, attributes) ⇒ Object
11 12 13 14 15 16 17 |
# 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 |