Class: TypoChecker::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/typo_checker/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/typo_checker/cli.rb', line 18

def self.exit_on_failure?
  true
end

Instance Method Details

#scan(repo_path) ⇒ Object



13
14
15
16
# File 'lib/typo_checker/cli.rb', line 13

def scan(repo_path)
  checker = TypoChecker::Checker.new(paths: options[:paths], excludes: options[:excludes], skips: options[:skips])
  checker.scan_repo(repo_path)
end