class Querly::CLI::Formatter::Base

Public Instance Methods

config_error(path, error) click to toggle source

Called when failed to load config Exit(status == 0) after the call

# File lib/querly/cli/formatter.rb, line 15
def config_error(path, error); end
config_load(config) click to toggle source

Called when config is successfully loaded

# File lib/querly/cli/formatter.rb, line 11
def config_load(config); end
fatal_error(error) click to toggle source

Called on other error Abort(status != 0) after the call

# File lib/querly/cli/formatter.rb, line 29
def fatal_error(error)
  STDERR.puts Rainbow("Fatal error: #{error}").red
  STDERR.puts "Backtrace:"
  STDERR.puts format_backtrace(error.backtrace)
end
finish() click to toggle source

Called on exit/abort

# File lib/querly/cli/formatter.rb, line 36
def finish; end
issue_found(script, rule, pair) click to toggle source

Called when issue is found

# File lib/querly/cli/formatter.rb, line 25
def issue_found(script, rule, pair); end
script_error(path, error) click to toggle source

Called when failed to load script Continue after the call

# File lib/querly/cli/formatter.rb, line 22
def script_error(path, error); end
script_load(script) click to toggle source

Called when script is successfully loaded

# File lib/querly/cli/formatter.rb, line 18
def script_load(script); end
start() click to toggle source

Called when analyzer started

# File lib/querly/cli/formatter.rb, line 8
def start; end