class Danger::DangerfileLocalOnlyPlugin

Handles interacting with local only plugin inside a Dangerfile. It is support plugin for dry_run command and does not expose any methods. But you can still use other plugins like git

@example Check that added lines contains agreed form of words

git.diff.each do |chunk|
  chunk.patch.lines.grep(/^\+/).each do |added_line|
    if added_line.gsub!(/(?<cancel>cancel)(?<rest>[^l[[:space:]][[:punct:]]]+)/i, '>>\k<cancel>-l-\k<rest><<')
      fail "Single 'L' for cancellation-alike words in '#{added_line}'"
    end
  end
end

@see danger/danger @tags core, local_only