Skip to content

Commit d1dbb8e

Browse files
More relaxed detection.
1 parent b73ec90 commit d1dbb8e

File tree

13 files changed

+851
-794
lines changed

13 files changed

+851
-794
lines changed

.rubocop.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ plugins:
55
AllCops:
66
DisabledByDefault: true
77

8+
# Socketry specific rules:
9+
810
Layout/ConsistentBlankLineIndentation:
911
Enabled: true
1012

13+
Layout/BlockDelimiterSpacing:
14+
Enabled: true
15+
16+
Style/GlobalExceptionVariables:
17+
Enabled: true
18+
19+
# General Layout rules:
20+
1121
Layout/IndentationStyle:
1222
Enabled: true
1323
EnforcedStyle: tabs
@@ -34,6 +44,9 @@ Layout/BeginEndAlignment:
3444
Enabled: true
3545
EnforcedStyleAlignWith: start_of_line
3646

47+
Layout/RescueEnsureAlignment:
48+
Enabled: true
49+
3750
Layout/ElseAlignment:
3851
Enabled: true
3952

@@ -42,10 +55,15 @@ Layout/DefEndAlignment:
4255

4356
Layout/CaseIndentation:
4457
Enabled: true
58+
EnforcedStyle: end
4559

4660
Layout/CommentIndentation:
4761
Enabled: true
4862

63+
Layout/FirstHashElementIndentation:
64+
Enabled: true
65+
EnforcedStyle: consistent
66+
4967
Layout/EmptyLinesAroundClassBody:
5068
Enabled: true
5169

0 commit comments

Comments
 (0)