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(commit = nil) ⇒ Object
Runs files through Pronto.
Instance Method Details
#lint(commit = nil) ⇒ Object
Runs files through Pronto. Generates a ‘markdown` list of warnings.
17 18 19 20 21 22 |
# File 'lib/danger_pronto/plugin.rb', line 17 def lint(commit = nil) files = pronto(commit) return if files.empty? markdown (files) end |