forked from zendesk/zendesk_api_client_rb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
40 lines (31 loc) · 1.09 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.3
DisplayCopNames: true
Exclude:
- .git/**/*
- spec/core/middleware/response/sanitize_response_spec.rb
- vendor/**/*
# Align ends correctly.
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
# Align the elements of a hash literal if they span more than one line.
Layout/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
# Align the parameters of a method call if they span more than one line.
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
# Checks the indentation of hanging closing parentheses.
Layout/ClosingParenthesisIndentation:
Enabled: false
# Checks the indentation of the first parameter in a method call.
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
# Checks indentation of method calls with the dot operator that span more than one line.
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# Checks indentation of binary operations that span more than one line.
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Metrics:
Enabled: false