class Supercop::Checker
Attributes
cop[R]
linters[R]
printer[R]
Public Class Methods
new(printer = TableFormatter)
click to toggle source
# File lib/supercop/checker.rb, line 4 def initialize(printer = TableFormatter) @linters = Supercop.configuration.cops_settings.keys @printer = printer @cop = Cop end
Public Instance Methods
call()
click to toggle source
# File lib/supercop/checker.rb, line 10 def call checks_result = linters.map { |linter| cop.new(linter).handle } printer.new.print_table(checks_result) end