-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
45 lines (36 loc) · 1008 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require:
- rubocop-minitest
- rubocop-packaging
- rubocop-performance
inherit_from:
- .rubocop_pending.yml
- .rubocop_be_pedantic.yml
AllCops:
TargetRubyVersion: 2.6
# I like parallel assignment.
Style/ParallelAssignment:
Enabled: false
# imho
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
# Don't enforce block brace spaces in tests
# because _{foo} is common there and matches _(foo), _ { foo } looks weird because it doesn't match _(foo)
Layout/SpaceInsideBlockBraces:
Exclude:
- 'test/**/*'
Layout/SpaceBeforeBlockBraces:
Exclude:
- 'test/**/*'
# Not a relevant metric for tests, where we organise tests by block and those blocks get pretty large
# Also not relevant for gemspec
Metrics/BlockLength:
Exclude:
- 'test/**'
- runeterra_cards.gemspec
# Just no.
Style/AsciiComments:
Enabled: false