Class: Danger::ShiphawkPlugin
- Inherits:
-
Plugin
- Object
- Plugin
- Danger::ShiphawkPlugin
- Defined in:
- lib/danger_plugin.rb
Overview
Run Ruby files through Rubocop. Results are passed out in a hash with errors/warnings
Instance Method Summary collapse
-
#checkup(options = {}) ⇒ void
Runs Ruby files through Rubocop.
Instance Method Details
#checkup(options = {}) ⇒ void
This method returns an undefined value.
Runs Ruby files through Rubocop. Generates a list of errors/warnings
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/danger_plugin.rb', line 23 def checkup( = {}) @files = .fetch(:files, 'all') @config = .fetch(:config, nil) @limit_of_warnings = .fetch(:limit_of_warnings, 10) @autofix_hint_threshold = .fetch(:autofix_hint_threshold, 0) return if offenses.empty? nil end |