Sha256: 123e9584c33370355b2836b11ab36abf1043f5c2f5775ea57473ee7868140d0b

Contents?: true

Size: 402 Bytes

Versions: 43

Compression:

Stored size: 402 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
end

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
standard-1.21.0 lib/standard/rubocop/ext.rb
standard-1.20.0 lib/standard/rubocop/ext.rb
standard-1.19.1 lib/standard/rubocop/ext.rb
standard-1.19.0 lib/standard/rubocop/ext.rb
standard-1.18.1 lib/standard/rubocop/ext.rb
standard-1.18.0 lib/standard/rubocop/ext.rb
standard-1.17.0 lib/standard/rubocop/ext.rb
standard-1.16.1 lib/standard/rubocop/ext.rb
standard-1.16.0 lib/standard/rubocop/ext.rb
standard-1.15.0 lib/standard/rubocop/ext.rb
standard-1.14.0 lib/standard/rubocop/ext.rb
standard-1.13.0 lib/standard/rubocop/ext.rb
standard-1.12.1 lib/standard/rubocop/ext.rb
standard-1.12.0 lib/standard/rubocop/ext.rb
standard-1.11.0 lib/standard/rubocop/ext.rb
standard-1.10.0 lib/standard/rubocop/ext.rb
standard-1.9.1 lib/standard/rubocop/ext.rb
standard-1.9.0 lib/standard/rubocop/ext.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/standard-1.8.0/lib/standard/rubocop/ext.rb
standard-1.8.0 lib/standard/rubocop/ext.rb