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.1.1 lib/standard/rubocop/ext.rb
standard-1.1.0 lib/standard/rubocop/ext.rb
standard-1.0.5 lib/standard/rubocop/ext.rb