Sha256: 15456c6f5433a58e075aa9e97d68236f896f7bfb0547ad8c144a0f2c7d9b1a50

Contents?: true

Size: 637 Bytes

Versions: 120

Compression:

Stored size: 637 Bytes

Contents

module RuboCop
  class Cop::Lint::AssignmentInCondition
    undef_method :message
    def message(_)
      "Wrap assignment in parentheses if intentional"
    end
  end

  class DirectiveComment
    remove_const :DIRECTIVE_COMMENT_REGEXP
    DIRECTIVE_COMMENT_REGEXP = Regexp.new(
      ('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
        .gsub(" ", '\s*')
    )
  end

  class CommentConfig
    alias_method :old_initialize, :initialize

    def initialize(processed_source)
      old_initialize(processed_source)
      @no_directives &&= !processed_source.raw_source.include?("standard")
    end
  end
end

Version data entries

120 entries across 120 versions & 3 rubygems

Version Path
standard-1.42.1 lib/standard/rubocop/ext.rb
standard-1.42.0 lib/standard/rubocop/ext.rb
standard-1.41.1 lib/standard/rubocop/ext.rb
standard-1.41.0 lib/standard/rubocop/ext.rb
standard-1.40.1 lib/standard/rubocop/ext.rb
standard-1.40.0 lib/standard/rubocop/ext.rb
standard-1.39.2 lib/standard/rubocop/ext.rb
standard-1.39.1 lib/standard/rubocop/ext.rb
standard-1.39.0 lib/standard/rubocop/ext.rb
standard-1.38.0 lib/standard/rubocop/ext.rb
standard-1.37.0 lib/standard/rubocop/ext.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
standard-1.35.0.1 lib/standard/rubocop/ext.rb
standard-1.34.0.1 lib/standard/rubocop/ext.rb
standard-1.35.1 lib/standard/rubocop/ext.rb
standard-1.35.0 lib/standard/rubocop/ext.rb
standard-1.34.0 lib/standard/rubocop/ext.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb