This repository has been archived by the owner on Sep 19, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the main app-y bits into a method that can be called more di…
…rectly.
- Loading branch information
1 parent
3a0fee0
commit b7a9ee6
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
require_relative "../lib/foodcritic" | ||
module FoodCritic | ||
cmd_line = CommandLine.new(ARGV) | ||
review, status = Linter.run(cmd_line) | ||
printer = cmd_line.show_context? ? ContextOutput.new : SummaryOutput.new | ||
printer.output(review) | ||
exit status.to_i | ||
end | ||
exit FoodCritic::CommandLine.main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters