Class: Eslint::Changes::Checker
- Inherits:
-
Object
- Object
- Eslint::Changes::Checker
- Defined in:
- lib/eslint/changes/checker.rb
Instance Method Summary collapse
-
#initialize(report:, quiet:, commit:, base_branch:) ⇒ Checker
constructor
A new instance of Checker.
- #run ⇒ Object
Constructor Details
#initialize(report:, quiet:, commit:, base_branch:) ⇒ Checker
Returns a new instance of Checker.
15 16 17 18 19 20 |
# File 'lib/eslint/changes/checker.rb', line 15 def initialize(report:, quiet:, commit:, base_branch:) @report = report @quiet = quiet @commit = commit @base_branch = base_branch end |
Instance Method Details
#run ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/eslint/changes/checker.rb', line 22 def run raise UnknownForkPointError if fork_point.empty? print_offenses! unless quiet total_offenses end |