-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
49 lines (38 loc) · 850 Bytes
/
.rubocop.yml
File metadata and controls
49 lines (38 loc) · 850 Bytes
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
# RuboCop configuration
# This file contains the configuration for RuboCop, a Ruby static code analyzer
AllCops:
TargetRubyVersion: 2.7
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
# Disable some rules that are too strict for this project
Layout/LineLength:
Max: 100
Exclude:
- 'examples/**/*'
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/FrozenStringLiteralComment:
Enabled: true
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'examples/**/*'
- '*.gemspec'
Metrics/MethodLength:
Max: 20
Exclude:
- 'examples/**/*'
Metrics/ClassLength:
Max: 200
Metrics/ModuleLength:
Max: 200
Style/ClassAndModuleChildren:
Enabled: false
# Allow long parameter lists in examples
Metrics/ParameterLists:
Exclude:
- 'examples/**/*'