lib/rubocop/rspec/description_extractor.rb in rubocop-rspec-1.32.0 vs lib/rubocop/rspec/description_extractor.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module RuboCop
module RSpec
# Extracts cop descriptions from YARD docstrings
class DescriptionExtractor
def initialize(yardocs)
@@ -18,10 +20,10 @@
attr_reader :code_objects
# Decorator of a YARD code object for working with documented rspec cops
class CodeObject
COP_CLASS_NAMES = %w[RuboCop::Cop RuboCop::Cop::RSpec::Cop].freeze
- RSPEC_NAMESPACE = 'RuboCop::Cop::RSpec'.freeze
+ RSPEC_NAMESPACE = 'RuboCop::Cop::RSpec'
def initialize(yardoc)
@yardoc = yardoc
end