module CheckXcodeXmls

Constants

VERSION

Public Class Methods

main(args) click to toggle source

Your code goes here…

# File lib/check_xcode_xmls.rb, line 9
def self.main(args)
  arguments_string = args.join(' ')
  options = Parser.parse(args)

  shell = ShellAdapter.new
  result = shell.process_files(
    options.check_constraints_identifiers,
    options.check_use_autolayout,
    options.ignore_regex_string,
    options.input_directory
  )

  puts "#{$PROGRAM_NAME} #{arguments_string}" if options.echo_invocation
  puts "Total issues: #{result.length || 0}" if options.print_totals
  puts result unless result.nil?
end