Sha256: c63c4a513ec419447131b8093caa79b0597b5b3abb6267b8c30180a2ef4c1634

Contents?: true

Size: 1.96 KB

Versions: 3

Compression:

Stored size: 1.96 KB

Contents

inherit_from: .rubocop.todo.yml

################################################################################

AllCops:
  DisplayCopNames: true
  TargetRubyVersion: 2.4

## Layout ######################################################################

Layout/AlignHash:
  EnforcedHashRocketStyle: table

Layout/AlignParameters:
  EnforcedStyle: with_fixed_indentation

Layout/IndentArray:
  EnforcedStyle: consistent

Layout/IndentHash:
  EnforcedStyle: consistent

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

Layout/SpaceInLambdaLiteral:
  EnforcedStyle: require_space

## Layout ######################################################################

# Adds useless noise. I would prefer it to enforce blind rescues instead of
# rescue from StandardError. To me blind rescue is as natural as implicit
# return.
Lint/RescueWithoutErrorClass:
  Enabled: false

## Metrics #####################################################################

Metrics/BlockLength:
  Exclude:
    - "Guardfile"
    - "spec/**/*"

## Styles ######################################################################

Style/BracesAroundHashParameters:
  Enabled: false

Style/Documentation:
  Enabled: false

Style/Encoding:
  EnforcedStyle: when_needed

Style/HashSyntax:
  EnforcedStyle: hash_rockets

# Follow your heart where it makes sense to use lambda or lambda literal.
# Enforcing it makes some pieces of code look REALLY terrible, e.g. in
# case of empty (noop) lambdas: `lambda { |_| }`.
Style/Lambda:
  Enabled: false

# Enabling this cop makes Guardfile (which is full of pathname regexps)
# look absolutley style-inconsistent and terrible. In any case, this should
# be on developer's choice whenever to use `%r` or not. Just like we don't
# enforce to use `["foo"]` over `%w(foo)` and so on.
Style/RegexpLiteral:
  Enabled: false

Style/StringLiterals:
  EnforcedStyle: double_quotes

# I prefer Yoda style instead, but there's no such enforcement style.
Style/YodaCondition:
  Enabled: false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-throttled-0.8.2 .rubocop.yml
sidekiq-throttled-0.8.1 .rubocop.yml
sidekiq-throttled-0.8.0 .rubocop.yml