forked from rubyforgood/human-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
84 lines (78 loc) · 1.91 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
80
81
82
83
84
inherit_mode:
merge:
- Exclude
inherit_gem:
standard: config/base.yml
standard-rails: config/base.yml
standard-performance: config/base.yml
inherit_from:
.rubocop_todo.yml
require:
- rubocop-rails
- rubocop-performance
- standard
- standard-rails
- standard-performance
AllCops:
Exclude:
- "vendor/**/*"
- "db/schema.rb"
- "db/partners_schema.rb"
- "db/seeds.rb"
- "db/migrate/*"
- "db/partners_migrate/*"
- "bin/*"
- "lib/files/cucumber.rake"
- "lib/tasks/*"
- "config/initializers/*"
- "Vagrantfile"
- "Rakefile"
- "tmp/*"
- "node_modules/**/*"
Rails:
Enabled: true
Rails/FilePath:
Enabled: false
Rails/PluralizationGrammar:
Enabled: true
Rails/UnknownEnv:
Environments:
- production
- development
- test
Rails/UniqueValidationWithoutIndex: # We use multiple unique validations where the uniqueness is scoped
Enabled: false
Rails/ActiveRecordCallbacksOrder:
Enabled: false
Rails/AfterCommitOverride:
Enabled: false
Rails/FindById:
Enabled: false
Rails/MailerName:
Enabled: false
Rails/MatchRoute:
Enabled: false
Rails/Pluck:
Enabled: false
Rails/PluckInWhere:
Enabled: false
Rails/RenderPlainText:
Enabled: false
Rails/ShortI18n:
Enabled: false
Rails/SquishedSQLHeredocs:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false
Rails/ThreeStateBooleanColumn:
Enabled: true
# FIXME: Fix our ENV variable access and remove the following config.
Rails/EnvironmentVariableAccess:
AllowReads: true
Rails/BulkChangeTable:
Exclude:
- db/partners_migrate/20180811225530_add_devise_to_partners.rb
- db/partners_migrate/20180811230421_devise_invitable_add_to_partners.rb
- db/partners_migrate/20190331165342_rename_item_to_item_request.rb
- db/partners_migrate/20190527220231_change_item_needed_column_to_integer_type.rb
- db/partners_migrate/20190726131533_devise_invitable_add_to_users_for_partnerbase.rb