Class: SwiftlintTranslateCheckstyleFormat::CLI

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

Instance Method Summary collapse

Methods included from Translate

add_dummy, create_message, #parse, #trans

Instance Method Details

#translateObject



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

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