forked from onetimesecret/onetimesecret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
70 lines (57 loc) · 1.35 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
##
# This is the RuboCop configuration file.
# It contains the rules and settings for the RuboCop linter.
#
# Enable/disable the cops individually. For more information,
# refer to the RuboCop documentation:
# https://docs.rubocop.org/rubocop/cops.html
#
# Running `rubocop --regenerate-todo` will update the todo file
# with the latest state of the onion (using the same options
# as those documented at the top of the todo file). This is
# useful for a gradual migration of the codebase.
#
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-thread_safety
AllCops:
NewCops: enable
UseCache: true
MaxFilesInCache: 100
TargetRubyVersion: 3.0
Exclude:
- 'migrate/**/*.rb'
- 'migrate/*.rb'
- 'tests/unit/ruby/try/**/*'
- 'vendor/**/*'
Gemspec/DeprecatedAttributeAssignment:
Enabled: true
Gemspec/DevelopmentDependencies:
Enabled: true
Layout/HashAlignment:
Enabled: false
Lint/Void:
Enabled: false
Metrics/AbcSize:
Enabled: false
Max: 20
Metrics/ClassLength:
Enabled: true
Max: 200
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: true
Max: 40
CountAsOne: ['method_call']
Metrics/ModuleLength:
Enabled: true
Max: 250
CountAsOne: ['method_call']
Performance/Size:
Enabled: true
Exclude:
# - lib/example.rb
Style/NegatedIfElseCondition:
Enabled: true