Class: LintTrappings::Command::DisplayDocumentation

Inherits:
Base
  • Object
show all
Defined in:
lib/lint_trappings/command/display_documentation.rb

Overview

Displays documentation for the specified linter

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LintTrappings::Command::Base

Instance Method Details

#runObject


6
7
8
9
10
11
12
13
14
15
# File 'lib/lint_trappings/command/display_documentation.rb', line 6

def run
  LintTrappings::LinterLoader.new(application, config).load(options)

  output.info 'Linter Documentation'
  output.info '--------------------'

  linter_classes(options).sort_by(&:canonical_name).each do |linter_class|
    display_linter_doc(linter_class)
  end
end