Sha256: 96d2e3567a6a5389aa3408754c0c1239620913ec9fcdd06b808ac9e2b328dfbf

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

AllCops:
  DisplayCopNames: true
  DisplayStyleGuide: true

# Relates to the indentation of if/when/(etc.) blocks when the initial keyword
# is indented as part of a variable assignment.
#
# Our preference is that the rubocop default conflicts with our 80-character
# line restriction, leaving less space for code inside nested blocks. We make
# this change at the cost of a little bit of readability.
#
#     # bad (although the Rubocop default):
#     thing = if x > 42
#               thing!
#             else
#               other_thing!
#             end
#
#     # good (preferred):
#     thing = if x > 42
#       thing!
#     else
#       other_thing!
#     end
#
#     # also acceptable
#     thing =
#       if x > 42
#         thing!
#       else
#         other_thing!
#       end
Lint/EndAlignment:
  EnforcedStyleAlignWith: variable
  StyleGuide: https://github.com/BridgeU/bridgeu/commit/d19e558ec0246452a2962dcd6e6e5a915c1a8a6b

Metrics/BlockLength:
  Exclude:
    - 'spec/**/*.rb'

# Passing multiple hashes to a function is messy, and clarity is good
# This is an extension of https://github.com/bbatsov/ruby-style-guide#no-braces-opts-hash
Style/BracesAroundHashParameters:
  EnforcedStyle: context_dependent
  StyleGuide: https://github.com/bbatsov/rubocop/issues/801

# This is one part of the style guide that doesn't express a preference, it just
# suggests you make a choice
Style/DotPosition:
  EnforcedStyle: trailing

Style/PercentLiteralDelimiters:
  # Enforce Ruby style guide percent-delimiters
  # Redundant with Rubocop 0.48.1
  PreferredDelimiters:
    default: ()
    '%i': '[]'
    '%I': '[]'
    '%r': '{}'
    '%w': '[]'
    '%W': '[]'

Style/StringLiterals:
  EnforcedStyle: double_quotes
  StyleGuide: https://www.viget.com/articles/just-use-double-quoted-ruby-strings

Style/PredicateName:
  NamePrefixBlacklist:
  - is_
  - have_

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flex_struct-0.1.2 .rubocop.yml
flex_struct-0.1.1 .rubocop.yml
flex_struct-0.1.0 .rubocop.yml