forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
42 lines (34 loc) · 1.01 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
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
# 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