class RuboCop::Schema::AsciiDoc::Department

Attributes

cops[R]

@return [Array<Cop>]

Protected Instance Methods

scan() click to toggle source
# File lib/rubocop/schema/ascii_doc/department.rb, line 13
def scan
  @cops = root
    .query(context: :section) { |s| s.title.start_with? "#{root.title}/" }
    .map &Cop.method(:new)
end