Class: Danger::DangerPronto

Inherits:
Plugin
  • Object
show all
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)

Examples:

Lint files with Pronto and specified Pronto Runners


pronto.lint

See Also:

  • RestlessThinker/danger-pronto

Instance Method Summary collapse

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 offenses_message(files)
end