class Danger::DangerSwiftrail

This is your plugin class. Any attributes or methods you expose here will be available from within your Dangerfile.

To be published on the Danger plugins site, you will need to have the public interface documented. Danger uses [YARD](yardoc.org/) for generating documentation from your plugin source, and you can verify by running `danger plugins lint` or `bundle exec rake spec`.

You should replace these comments with a public description of your library.

@example Ensure people are well warned about merging on Mondays

my_plugin.warn_on_mondays

@see Slavko Krucaj/danger-swiftrail @tags monday, weekends, time, rattata

Attributes

failures[RW]

An attribute that you can read/write from your Dangerfile

@return [Array<String>]

Public Instance Methods

lint(test_patterns) click to toggle source
# File lib/swiftrail/plugin.rb, line 28
def lint(test_patterns)
  @failures = Swiftrail::Swift::Lint.new(test_patterns).lint
end