-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
48 lines (38 loc) · 1.15 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
require: rubocop-minitest
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
Exclude:
- '**/db/schema.rb'
- '.git/**/*'
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- '**/*_create_active_storage_tables.active_storage.rb'
Metrics/AbcSize:
Exclude:
- 'test/dummy/**/*.rb'
Metrics/ClassLength:
Exclude:
- 'test/**/*.rb'
Metrics/MethodLength:
Exclude:
- 'test/dummy/**/*.rb'
# `assert_equal([], object)` and `assert_equal({}, object)` are completely different,
# so this cop does not make sense to me.
Minitest/AssertEmptyLiteral:
Enabled: false
# `assert_equal(false, object)` and `assert_equal(nil, object)` are different when it comes to their types,
# so this cop does not make sense to me.
Minitest/RefuteFalse:
Enabled: false
# `after_initialize` requires many block length.
Metrics/BlockLength:
Max: 50
# I don't care the style of if/unless.
Style/IfUnlessModifier:
Enabled: false
# `Module.nesting` is empty in the current code, but we're not sure it will keep being that.
Style/RedundantConstantBase:
Enabled: false
# If you feel annoyed by the current configuration, let's tweak the configuration!