Sha256: 6c23af729c815f1af770a5e8e809386b17d8f34ae0c8f1b201d48abe4cf5ea1c

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 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

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

# 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

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

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

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unasukecop-0.4.0 config/rubocop.yml
unasukecop-0.3.0 config/rubocop.yml
unasukecop-0.2.0 config/rubocop.yml