-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
52 lines (42 loc) · 1.13 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
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
- rubocop-rails
- rubocop-rake
- rubocop-performance
AllCops:
NewCops: enable
Exclude:
- db/schema.rb # autogenerated
- vendor/**/* # not our code
- bin/**/* # autogenerated
- node_modules/**/*
Metrics/BlockLength:
Exclude:
- spec/**/*
- config/**/*
- db/migrate/*
- lib/tasks/**/*
# perceived complexity cop forces us to avoid inlining code,
# even though inlining code makes code easier to reason with
# and less error prone
Metrics/PerceivedComplexity:
Enabled: false
# cyclomatic complexity cop forces us to avoid inlining code, even though
# inlining code makes code easier to reason with and less error prone
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false
# explicit arguments are easier to understand / read without needing to read the docs
Style/RedundantArgument:
Enabled: false
# Tests are self-documenting
Style/Documentation:
Exclude:
- spec/**/*
# Multiple expects can make for faster E2E tests
RSpec/MultipleExpectations:
Enabled: false
Style/StringLiterals:
Enabled: false