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.7.3 lib/standard/rubocop/ext.rb
standard-1.7.2 lib/standard/rubocop/ext.rb
standard-1.7.1 lib/standard/rubocop/ext.rb
standard-1.7.0 lib/standard/rubocop/ext.rb
standard-1.6.0 lib/standard/rubocop/ext.rb
standard-1.5.0 lib/standard/rubocop/ext.rb
standard-1.4.0 lib/standard/rubocop/ext.rb
standard-mkv-1.3.4 lib/standard/rubocop/ext.rb
standard-mkv-1.3.3 lib/standard/rubocop/ext.rb
standard-mkv-1.3.2 lib/standard/rubocop/ext.rb
standard-mkv-1.3.1 lib/standard/rubocop/ext.rb
standard-mkv-1.3.0 lib/standard/rubocop/ext.rb
standard-1.3.0 lib/standard/rubocop/ext.rb
standard-1.2.0 lib/standard/rubocop/ext.rb
standard-1.1.7 lib/standard/rubocop/ext.rb
standard-1.1.6 lib/standard/rubocop/ext.rb
standard-1.1.5 lib/standard/rubocop/ext.rb
standard-1.1.4 lib/standard/rubocop/ext.rb
standard-1.1.3 lib/standard/rubocop/ext.rb
standard-1.1.2 lib/standard/rubocop/ext.rb