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
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.90 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb