-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.rubocop.yml
More file actions
35 lines (27 loc) · 845 Bytes
/
.rubocop.yml
File metadata and controls
35 lines (27 loc) · 845 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
inherit_from: .rubocop_todo.yml
require: rubocop-ordered_methods
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.7
# Subtle, left to author's discretion. In a long method with many guard clauses,
# a blank line may help. But, in a short method, especially with only a single
# guard clause, a blank line can be disruptive.
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/LineEndStringConcatenationIndentation:
EnforcedStyle: indented
Metrics/BlockLength:
Exclude:
- spec/**/*
Metrics/MethodLength:
Exclude:
- spec/**/*
Naming/FileName:
Exclude:
- lib/rubocop-ordered_methods.rb
# Use the semantic style. If a block has side effects use `do`, and if it is
# pure use `{}`. This style is too nuanced for a linter, so the cop is
# disabled.
Style/BlockDelimiters:
Enabled: false