Sha256: a87e129f0c06efed9bb8ac9aaa5d4a518035a7cfb035e71bdaa3b4682ac01a11

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

AllCops:
  DisplayCopNames: true

## Lint

# just a preference
Lint/BlockAlignment:
  EnforcedStyleAlignWith: start_of_block

## Metrics

# inherit from onkcop
Metrics/LineLength:
  Max: 160

# inherit from onkcop
Metrics/MethodLength:
  Max: 20

## Style

# just a preference
Style/EmptyMethod:
  EnforcedStyle: expanded

# I like sprintf than format
Style/FormatString:
  EnforcedStyle: sprintf

# not to use hash rockets
# but unification is more important
Style/HashSyntax:
  EnforcedStyle: ruby19_no_mixed_keys

# just a preference
Style/InlineComment:
  Enabled: false

# I use both
Style/RegexpLiteral:
  EnforcedStyle: mixed

# I don't want to be enforced
# inherit from onkcop
Style/SafeNavigation:
  Enabled: false

# my superior said
# "if you need to use 'send', the code is do to something wrong"
Style/Send:
  Enabled: true

# just a preference
Style/SingleLineMethods:
  AllowIfMethodIsEmpty: false

# human readable
Style/TernaryParentheses:
  EnforcedStyle: require_parentheses_when_complex

# I use trailing comma
Style/TrailingCommaInArguments:
  EnforcedStyleForMultiline: consistent_comma

# same as reason of Style/TrailingCommaInArguments
Style/TrailingCommaInLiteral:
  EnforcedStyleForMultiline: consistent_comma

## Layout

# when copy-and-past to REPL, trailing dot is more safety
# inherit from onkcop
Layout/DotPosition:
  EnforcedStyle: trailing

# more short line length and compact diff when change method name
# inherit from onkcop
Layout/IndentArray:
  EnforcedStyle: consistent

# same as reason of Style/IndentArray
Layout/IndentHash:
  EnforcedStyle: consistent

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unasukecop-0.5.0 config/rubocop.yml