-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.rubocop.yml
More file actions
44 lines (42 loc) · 1.1 KB
/
.rubocop.yml
File metadata and controls
44 lines (42 loc) · 1.1 KB
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
AllCops:
DisplayCopNames: true
Exclude:
- 'db/**/*'
- 'db/schema.rb'
# - 'config/**/*'
# - 'script/**/*'
Rails:
Enabled: true
# Style/Documentation:
# Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/LineLength:
Max: 120
# While methods ideally should be around 5 lines max, comment this out while
# other issues are present.
# Metrics/MethodLength:
# Max: 5
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/SkipsModelValidations:
Enabled: false
# Check quotes usage according to lint rule below.
Style/StringLiterals:
Enabled: false
# Enabled: true
# EnforcedStyle: double_quotes
# Allow perl backrefs.
Style/PerlBackrefs:
Enabled: false