class RuboCop::GitlabSecurity::DescriptionExtractor
Extracts cop descriptions from YARD docstrings
Attributes
code_objects[R]
Public Class Methods
new(yardocs)
click to toggle source
# File lib/rubocop/gitlab-security/description_extractor.rb, line 5 def initialize(yardocs) @code_objects = yardocs.map(&CodeObject.public_method(:new)) end
Public Instance Methods
to_h()
click to toggle source
# File lib/rubocop/gitlab-security/description_extractor.rb, line 9 def to_h code_objects .select(&:rspec_cop?) .map(&:configuration) .reduce(:merge) end