forked from SUSE/velum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
48 lines (38 loc) · 1.02 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
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
Rails:
Enabled: true
# Nope.
Bundler/OrderedGems:
Enabled: false
# This does not happen when testing views.
RSpec/DescribeClass:
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
AllCops:
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/**/*