Class: BrakemanTranslateCheckstyleFormat::CLI
- Inherits:
-
Thor
- Object
- Thor
- BrakemanTranslateCheckstyleFormat::CLI
- 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
#translate ⇒ Object
9 10 11 12 13 14 |
# File 'lib/brakeman_translate_checkstyle_format/cli.rb', line 9 def translate data = fetch_data() json = parse(data) checkstyle = trans(json) checkstyle.write(STDOUT, 2) end |