-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
76 lines (61 loc) · 1.37 KB
/
.rubocop.yml
File metadata and controls
76 lines (61 loc) · 1.37 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
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
75
76
plugins:
- rubocop-rspec
- rubocop-rake
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
# Layout
Layout/LineLength:
Max: 80
Exclude:
- bin/rspec
- bin/rake
Layout/MultilineMethodCallIndentation:
# On multiline calls, indent starting from the receiver.
# E.g.:
# while apples_and_oranges
# .sorted_by_color
# .ripe
# .pick
# # …
# end
EnforcedStyle: indented_relative_to_receiver
Exclude:
- spec/**/*
# Metrics
Metrics/BlockLength:
# Limit the number of lines in a block.
Exclude:
- spec/**/*
# Security
Security/Eval:
# Allow the use of `eval` in specs.
Exclude:
- spec/**/*
# Style
Style/Documentation:
# Do not require a comment for every class.
Enabled: false
Style/NumericPredicate:
# Prefer `== 0` over `.zero?`.
EnforcedStyle: comparison
Style/RegexpLiteral:
# Allow using %r{…} or /…/ for regular expressions.
EnforcedStyle: mixed
Style/StringLiterals:
# Prefer "double quotes" over 'single quotes'.
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
# Prefer trailing commas in multiline arguments:
# call(
# a: 1,
# b: 2,
# )
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
# Prefer trailing commas in arrays:
# [
# 1,
# 2,
# ]
EnforcedStyleForMultiline: diff_comma