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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'danger/plugins/rubocop.rb')
-rw-r--r--danger/plugins/rubocop.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/danger/plugins/rubocop.rb b/danger/plugins/rubocop.rb
new file mode 100644
index 00000000000..6645a37041b
--- /dev/null
+++ b/danger/plugins/rubocop.rb
@@ -0,0 +1,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