-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
74 lines (66 loc) · 1.67 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
AllCops:
TargetRubyVersion: 2.6
DisplayCopNames: true
Exclude:
- 'db/**/*'
- 'db/schema.rb'
# - 'config/**/*'
# - 'script/**/*'
Rails:
Enabled: true
# Style/Documentation:
# Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
# Frozen String Literal Pragma will not be needed in Ruby 3+ as it will be the
# default, Added `frozen_string_literal: true` to use this new default
Style/FrozenStringLiteralComment:
EnforcedStyle: always
# Strings assigned to constants will no longer be considered mutable in Ruby 3+
# This can be removed after Ruby 3 is released.
Style/MutableConstant:
Enabled: false
Rails/DynamicFindBy:
Whitelist:
- find_by_param
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/InverseOf:
Enabled: false
# Check quotes usage according to lint rule below.
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
# Allow perl backrefs.
Style/PerlBackrefs:
Enabled: false
# Allow symbol arrays.
Style/SymbolArray:
Enabled: false
# Allow word arrays.
Style/WordArray:
Enabled: false
# Don't require brackets for white-space separated arrays.
Style/PercentLiteralDelimiters:
Enabled: false
# Don't require formatted string tokens.
Style/FormatStringToken:
Enabled: false
# Prefer consistent use of lambda literal syntax in single- and multi-line.
Style/Lambda:
EnforcedStyle: literal