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.1.45 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.44 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.43 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.42 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.41 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.39 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.38 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
harbr-0.1.37 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/rubocop/ext.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/standard-1.33.0/lib/standard/rubocop/ext.rb
standard-1.33.0 lib/standard/rubocop/ext.rb
standard-1.32.1 lib/standard/rubocop/ext.rb
standard-1.32.0 lib/standard/rubocop/ext.rb
standard-1.31.2 lib/standard/rubocop/ext.rb
standard-1.31.1 lib/standard/rubocop/ext.rb
standard-1.31.0 lib/standard/rubocop/ext.rb
standard-1.30.1 lib/standard/rubocop/ext.rb
standard-1.30.0 lib/standard/rubocop/ext.rb
standard-1.29.0 lib/standard/rubocop/ext.rb
standard-1.28.5 lib/standard/rubocop/ext.rb
standard-1.28.4 lib/standard/rubocop/ext.rb