Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rubocop.rb « plugins « danger - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6645a37041beab0c808028a49ce10e908f5edcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

require_relative '../../tooling/danger/rubocop_inline_disable_suggestion'

module Danger
  class Rubocop < ::Danger::Plugin
    # Put the helper code somewhere it can be tested
    def add_suggestions_for(filename)
      Tooling::Danger::RubocopInlineDisableSuggestion.new(filename, context: self).suggest
    end
  end
end