Sha256: a3c81eaf3635f32b5170ea60787efb68b8b0bcb29415ea5c282933e11d995ba8

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

# Use `caller(n..n)` instead of `caller`.
Performance/Caller:
  Enabled: false

# Use `casecmp` rather than `downcase ==`.
Performance/Casecmp:
  Enabled: true

# Use `str.{start,end}_with?(x, ..., y, ...)` instead of
# `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`.
Performance/DoubleStartEndWith:
  Enabled: true

# Use `strip` instead of `lstrip.rstrip`.
Performance/LstripRstrip:
  Enabled: true

# Use `Range#cover?` instead of `Range#include?`.
Performance/RangeInclude:
  Enabled: true

# This cop identifies the use of a `&block` parameter and `block.call`
# where `yield` would do just as well.
Performance/RedundantBlockCall:
  Enabled: true

# This cop identifies use of `Regexp#match` or `String#match in a context
# where the integral return value of `=~` would do just as well.
Performance/RedundantMatch:
  Enabled: true

# This cop identifies places where `Hash#merge!` can be replaced by
# `Hash#[]=`.
Performance/RedundantMerge:
  Enabled: true
  MaxKeyValuePairs: 1

# Use `sort` instead of `sort_by { |x| x }`.
Performance/RedundantSortBy:
  Enabled: true

# Use `start_with?` instead of a regex match anchored to the beginning of a
# string.
Performance/StartWith:
  Enabled: true

# Use `tr` instead of `gsub` when you are replacing the same number of
# characters. Use `delete` instead of `gsub` when you are deleting
# characters.
Performance/StringReplacement:
  Enabled: true

# Checks for `.times.map` calls.
Performance/TimesMap:
  Enabled: true

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
pdf_extractor-0.1.1 .rubocop/rubocop-performance.yml
gitlab-styles-2.5.2 rubocop-performance.yml
gitlab-styles-2.5.1 rubocop-performance.yml
gitlab-styles-2.5.0 rubocop-performance.yml
gitlab-styles-2.4.1 rubocop-performance.yml
gitlab-styles-2.4.0 rubocop-performance.yml
gitlab-styles-2.3.2 rubocop-performance.yml
gitlab-styles-2.3.1 rubocop-performance.yml
gitlab-styles-2.3.0 rubocop-performance.yml
gitlab-styles-2.2.0 rubocop-performance.yml
gitlab-styles-2.1.0 rubocop-performance.yml