Class: Danger::DangerPronto
- Inherits:
-
Plugin
- Object
- Plugin
- Danger::DangerPronto
- Defined in:
- lib/danger_pronto/plugin.rb
Overview
Lints files via Pronto through specified runners Results are displayed as a table in markdown
[Runners](github.com/mmozuras/pronto#runners)
Instance Method Summary collapse
-
#lint(files = nil) ⇒ void
Runs files through Pronto.
-
#offending_files(files = nil) ⇒ Array<Object>
Gets the offending files from pronto.
Instance Method Details
#lint(files = nil) ⇒ void
This method returns an undefined value.
Runs files through Pronto. Generates a ‘markdown` list of warnings.
24 25 26 27 28 29 30 |
# File 'lib/danger_pronto/plugin.rb', line 24 def lint(files = nil) files_to_lint = fetch_files_to_lint(files) return if offending_files.empty? markdown (offending_files) end |
#offending_files(files = nil) ⇒ Array<Object>
Gets the offending files from pronto
34 35 36 37 |
# File 'lib/danger_pronto/plugin.rb', line 34 def offending_files(files = nil) files_to_lint = fetch_files_to_lint(files) pronto(files_to_lint) end |