-
Notifications
You must be signed in to change notification settings - Fork 10
/
.rubocop.yml
65 lines (63 loc) · 1.44 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
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
Rails:
Enabled: true
AllCops:
Exclude:
- bin/*
- db/schema.rb
- db/seeds.rb
- db/migrate/*.rb
- config/initializers/devise.rb
- config/initializers/rails_admin.rb # autogenerated
TargetRubyVersion: 2.4
Capybara/FeatureMethods:
Enabled: false # I like the Capybara feature DSL
Lint/UnusedMethodArgument:
Exclude:
- app/models/svg_path.rb
Metrics/CyclomaticComplexity:
Exclude:
- app/models/ability.rb
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Exclude:
- app/helpers/application_helper.rb
Metrics/BlockLength:
Exclude:
- config/environments/*
- config/initializers/simple_form_bootstrap.rb
- spec/controllers/radars/blips_controller_spec.rb # TODO
ExcludedMethods:
- context
- describe
- feature
Metrics/PerceivedComplexity:
Exclude:
- app/models/ability.rb
Rails/Delegate:
Exclude:
- app/models/blip.rb # TODO
Rails/InverseOf:
Enabled: false # TODO
Rails/Output:
Exclude:
- config/initializers/analytics_ruby.rb
- config/unicorn.rb
RSpec/ContextWording:
Prefixes:
- when
- with
- without
- as
RSpec/ExampleLength:
Enabled: false # TODO
Style/IfUnlessModifier:
Enabled: false # Disable for more accurate Code Coverage mesaurement
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes