Class: Gitlab::Dangerfiles::MergeRequestLinter

Inherits:
BaseLinter
  • Object
show all
Defined in:
lib/gitlab/dangerfiles/merge_request_linter.rb

Constant Summary

Constants inherited from BaseLinter

BaseLinter::MAX_LINE_LENGTH, BaseLinter::MIN_SUBJECT_WORDS_COUNT

Instance Attribute Summary

Attributes inherited from BaseLinter

#commit, #problems

Class Method Summary collapse

Methods inherited from BaseLinter

#add_problem, #failed?, #initialize, #inspect, #lint_subject, problems_mapping

Constructor Details

This class inherits a constructor from Gitlab::Dangerfiles::BaseLinter

Class Method Details

.mr_run_options_regexObject



14
15
16
17
18
19
20
21
# File 'lib/gitlab/dangerfiles/merge_request_linter.rb', line 14

def self.mr_run_options_regex
  [
    "RUN AS-IF-FOSS",
    "UPDATE CACHE",
    "RUN ALL RSPEC",
    "SKIP RSPEC FAIL-FAST",
  ].join("|")
end

.subject_descriptionObject



10
11
12
# File 'lib/gitlab/dangerfiles/merge_request_linter.rb', line 10

def self.subject_description
  "merge request title"
end