Sha256: f8f2ad508fb1dcdc4d79f8bc2898c168317e984aea5450d99fb914d27efd64b2

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

AllCops:
  DisplayCopNames: true

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

Style/AlignParameters:
  EnforcedStyle: with_fixed_indentation

Style/BracesAroundHashParameters:
  Enabled: false

# Broken (2014-12-15). Use `yardstick` gem instead.
# See: https://github.com/bbatsov/rubocop/issues/947
# TODO: Enable back once cop is fixed.
Style/Documentation:
  Enabled: false

Style/EmptyLineBetweenDefs:
  AllowAdjacentOneLineDefs: true

Style/Encoding:
  EnforcedStyle: when_needed

Style/FrozenStringLiteralComment:
  EnforcedStyle: always

Style/HashSyntax:
  EnforcedStyle: hash_rockets

Style/IndentArray:
  EnforcedStyle: consistent

Style/IndentHash:
  EnforcedStyle: consistent

# New lambda syntax is as ugly to me as new syntax of Hash.
Style/Lambda:
  Enabled: false

Style/MultilineOperationIndentation:
  EnforcedStyle: indented

# IMHO `%r{foo/bar}` looks way more cleaner than `/foo\/bar/`.
# Enabling this cop also makes Guardfile (which is full of pathname regexps)
# look absolutley (style) inconsistent and terrible. Thus it should be on
# developer's choice whenever to user `%r` or not.
Style/RegexpLiteral:
  Enabled: false

# A bit useless restriction, that makes impossible aligning code like this:
#
#   redis do |conn|
#     conn.hset    :k1, now
#     conn.hincrby :k2, 123
#   end
Style/SpaceBeforeFirstArg:
  Enabled: false

Style/StringLiterals:
  EnforcedStyle: double_quotes

# Not all trivial readers/writers can be defined with attr_* methods
#
#   class Example < SimpleDelegator
#     def __getobj__
#       @obj
#     end
#
#     def __setobj__(obj)
#       @obj = obj
#     end
#   end
Style/TrivialAccessors:
  Enabled: false

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

Metrics/MethodLength:
  CountComments: false
  Max: 15

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-throttled-0.3.0 .rubocop.yml
sidekiq-throttled-0.3.0.pre .rubocop.yml