forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
79 lines (61 loc) · 1.56 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
71
72
73
74
75
76
77
78
79
inherit_from: .rubocop_todo.yml
require:
- rubocop-thread_safety
- rubocop-rspec
- rubocop-rails
- rubocop-performance
AllCops:
Exclude:
- db/schema.rb # autogenerated
- vendor/**/* # not our code
- bin/**/* # autogenerated
- node_modules/**/*
# before-filters like `find_event` cause this cop to not make so much sense
Naming/MemoizedInstanceVariableName:
Exclude:
- app/controllers/**/*
# we allow exiting from rake tasks
Rails/Exit:
Exclude:
- lib/tasks/**/*
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- db/migrate/20151210035820_init_schema.rb
- db/migrate/20160211061631_add_chapter_leaderships_again.rb
- db/migrate/20160312224628_create_organization_leaderships.rb
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- lib/tasks/**/* # rake tasks need output
- app/jobs/**/* # heroku scheduler support output# Offense count: 4
Style/DoubleNegation:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/DescribeClass:
Exclude:
- spec/features/**/*
- spec/models/factory_spec.rb
Metrics/BlockLength:
Exclude:
- spec/**/*
- config/**/*
- db/migrate/*
- lib/tasks/**/*
Style/HashEachMethods:
Enabled: True
Style/HashTransformKeys:
Enabled: True
Style/HashTransformValues:
Enabled: True
Lint/RaiseException:
Enabled: True
Lint/StructNewOverride:
Enabled: True
Layout/SpaceAroundMethodCallOperator:
Enabled: True
Style/ExponentialNotation:
Enabled: True