Class: Linters::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/linters/builder.rb

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



5
6
7
# File 'lib/linters/builder.rb', line 5

def initialize
  @config = Linters.configuration
end

Instance Method Details

#performObject



9
10
11
12
13
# File 'lib/linters/builder.rb', line 9

def perform
  result = config.linters.map { |linter| Linter.new(linter) }

  result + config.custom_linters.map { |linter, settings| Linter.new(linter, settings) }
end