Class: BrakemanTranslateCheckstyleFormat::CLI

Inherits:
Thor
  • Object
show all
Includes:
Translate
Defined in:
lib/brakeman_translate_checkstyle_format/cli.rb

Instance Method Summary collapse

Methods included from Translate

convert_to_absolute, create_message, #parse, set_dummy, #trans

Instance Method Details

#translateObject



9
10
11
12
13
14
# File 'lib/brakeman_translate_checkstyle_format/cli.rb', line 9

def translate
  data = fetch_data(options)
  json = parse(data)
  checkstyle = trans(json)
  checkstyle.write(STDOUT, 2)
end