This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.rubocop.yml
70 lines (54 loc) · 1.52 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
66
67
68
69
70
require:
- rubocop-rspec
inherit_from:
- ./config/rubocop-suse.yml
Metrics/MethodLength:
Max: 50
# Disable the block length cop for tests.
Metrics/BlockLength:
Enabled: true
Exclude:
- spec/**/*
# It's convenient to mix both. This is something that SUSE's style guide does
# not specify, so we take the approach that we were following already.
Style/ClassAndModuleChildren:
Enabled: false
Style/SymbolArray:
StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#stylesymbolarray
EnforcedStyle: brackets
Style/WordArray:
StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#stylewordarray
EnforcedStyle: brackets
Layout/EmptyLineAfterMagicComment:
Enabled: false
Rails:
Enabled: true
# Nope.
Bundler/OrderedGems:
Enabled: false
# This does not happen when testing views.
RSpec/DescribeClass:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
# NOTE: drop this when switching to [Rails 5] as it's no longer needed there"
# https://github.com/bbatsov/rubocop/issues/3629
Rails/HttpPositionalArguments:
Enabled: false
# Sometimes we need more than one "expect" command to build our actual
# expectation.
RSpec/MultipleExpectations:
Max: 2
Exclude:
- spec/features/**/*
AllCops:
TargetRubyVersion: 2.1
TargetRailsVersion: 4.2
DisplayCopNames: true
DisplayStyleGuide: false
Exclude:
# Files that are out of our control and that are not excluded in the
# default config of rubocop.
- db/schema.rb
- db/migrate/*
- vendor/**/*