-
Notifications
You must be signed in to change notification settings - Fork 9
/
.rubocop.yml
65 lines (50 loc) · 1.36 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AllCops:
TargetRubyVersion: 2.1
NewCops: enable
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Naming/VariableNumber:
EnforcedStyle: snake_case
# Non-specific exception handling is fine
Style/RescueStandardError:
EnforcedStyle: 'implicit'
# This would result in too much intermixing of regular and percent arrays, depending on
# context, and makes nested arrays look weird
Style/WordArray:
Enabled: false
# Helps with readability
Layout/EmptyLines:
Enabled: false
Layout/LineLength:
Max: 120
Metrics/MethodLength:
Max: 15
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
# Helps with readability
Layout/CaseIndentation:
Enabled: false
# The test code is safe to evaluate
Security/Eval:
Exclude:
- 'testing/**/*'
Metrics/BlockLength:
Exclude:
# RSpec tests are inherently large blocks of code
- 'testing/rspec/spec/**/*_spec.rb'
# Gemspecs are inherently one large block of code
- cuke_linter.gemspec
# Whitespace improves readability
Layout/EmptyLinesAroundBlockBody:
Enabled: false
# TODO: Figure out why this is
Layout/EndOfLine:
Exclude:
# Git isn't changing the line endings locally for some reason
- 'bin/console'
# The gemspec is the source of truth for a gem.
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec