forked from rubytoolbox/catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
59 lines (46 loc) · 1.33 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
#
# Our adjustments to rubocop default code policies.
#
# See http://rubocop.readthedocs.io/en/latest/ for detailed configuration options documentation
# Additional cops for working with RSpec. See https://github.com/backus/rubocop-rspec
require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- 'tmp/**/*.rb'
# See https://qiita.com/ozhaan/items/40ea864757162e931be1
- 'vendor/**/*'
Metrics/BlockLength:
Exclude:
# The default guard-rspec config fails this, but it's ok.
- 'Guardfile'
- 'spec/**/*_spec.rb'
# Big screens are common :)
Layout/LineLength:
Max: 120
# We use RSpec as a format linter, so no specific classes under test neccessarily :)
RSpec/DescribeClass:
Enabled: false
# Prefer to use the up-front message expectations
RSpec/MessageSpies:
Enabled: false
# Prefer structure over small indentation
RSpec/NestedGroups:
Max: 5
Style/Documentation:
Enabled: false
# Prefer to create "real" booleans using double negation
Style/DoubleNegation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
# I actually use this a lot with `private :foo=`
Style/AccessModifierDeclarations:
Enabled: false