diff options
Diffstat (limited to 'tooling/danger/project_helper.rb')
-rw-r--r-- | tooling/danger/project_helper.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tooling/danger/project_helper.rb b/tooling/danger/project_helper.rb index 02002e1d1b2..fc87498f5d0 100644 --- a/tooling/danger/project_helper.rb +++ b/tooling/danger/project_helper.rb @@ -3,22 +3,6 @@ module Tooling module Danger module ProjectHelper - LOCAL_RULES ||= %w[ - ci_config - database - documentation - duplicate_yarn_dependencies - eslint - gitaly - pajamas - pipeline - prettier - product_intelligence - utility_css - vue_shared_documentation - datateam - ].freeze - CI_ONLY_RULES ||= %w[ ce_ee_vue_templates ci_templates @@ -31,8 +15,6 @@ module Tooling z_metadata ].freeze - MESSAGE_PREFIX = '==>' - # First-match win, so be sure to put more specific regex at the top... CATEGORIES = { [%r{usage_data\.rb}, %r{^(\+|-).*\s+(count|distinct_count|estimate_batch_distinct_count)\(.*\)(.*)$}] => [:database, :backend, :product_intelligence], @@ -181,20 +163,6 @@ module Tooling %r{\.js\z} => :frontend }.freeze - def local_warning_message - "#{MESSAGE_PREFIX} Only the following Danger rules can be run locally: #{LOCAL_RULES.join(', ')}" - end - module_function :local_warning_message # rubocop:disable Style/AccessModifierDeclarations - - def success_message - "#{MESSAGE_PREFIX} No Danger rule violations!" - end - module_function :success_message # rubocop:disable Style/AccessModifierDeclarations - - def rule_names - helper.ci? ? LOCAL_RULES | CI_ONLY_RULES : LOCAL_RULES - end - def file_lines(filename) read_file(filename).lines(chomp: true) end |