-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.rubocop.yml
60 lines (42 loc) · 1.02 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
require:
- rubocop-performance
- rubocop-rails
# - rubocop-rspec
# - rubocop-rspec_rails
# - rubocop-factory_bot
AllCops:
NewCops: enable
Lint/MissingSuper:
Exclude:
- "**/app/components/**/*"
Lint/SymbolConversion:
EnforcedStyle: consistent
Naming/VariableNumber:
EnforcedStyle: snake_case
Rails/DangerousColumnNames:
Exclude:
- "**/db/migrate/20221010144700_make_cache_key_more_obvious_in_cache_models.rb"
- "**/db/migrate/20221024015351_change_cache_keys_to_strings_and_change_their_name.rb"
Rails/DynamicFindBy:
AllowedMethods: ["find_by_referral_code"]
Style/NumericPredicate:
EnforcedStyle: comparison
Style/StringLiterals:
EnforcedStyle: double_quotes
## Disabled cops
Layout/LineLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Rails/I18nLocaleTexts:
Enabled: false
Rails/BulkChangeTable:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Style/Documentation:
Enabled: false