-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
48 lines (36 loc) · 1.08 KB
/
.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
46
47
48
inherit_from:
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
# local repo-specific modifications
# ...
AllCops:
TargetRubyVersion: 2.7
# I prefer this way, especially in specs.
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/CaseIndentation:
EnforcedStyle: end
# This is very inconsistent in this project. Will likely change in future.
Layout/DotPosition:
Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/SpaceAroundOperators:
EnforcedStyleForExponentOperator: space
# This one breaks plenty of RSpec idioms.
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
# This project has large and complicated methods. Disabling these cops for now.
Metrics:
Enabled: false
# Cause it's stupd…
# https://rubystyle.guide/#map-find-select-reduce-include-size
Style/CollectionMethods:
Enabled: false
# Hashrocket style looks better when describing task dependencies.
Style/HashSyntax:
Exclude:
- Rakefile
- "**/*.rake"