module ArchSpec::Rules
The checks ArchSpec runs. Each rule responds to id (its stable rule id, used in suppressions and the todo file) and evaluate(graph), which returns ArchSpec::Diagnostic objects. You normally add rules through the ArchSpec::DSL rather than instantiating these directly, but you can pass a custom object of the same shape to ArchSpec::DSL::Context#rule.
Public Instance Methods
Source
# File lib/archspec/rules/reasoned.rb, line 29 def with_reason(rule, because) return rule unless because rule.extend(Reasoned) unless rule.is_a?(Reasoned) rule.archspec_because = because rule end