rubocop-inhouse 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +2 -1
- data/config/layout.yml +82 -6
- data/config/lint.yml +1 -1
- data/config/style.yml +1 -2
- data/lib/rubocop/inhouse/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f977c1ac64adadd41b096f90ec82506ac0cd25f91e06c3f730376f2aeb380ea6
|
4
|
+
data.tar.gz: e9febd9d41d9fd620f8755c60558be864692f006ab74b8c3f5d6c00412dab1da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd15d9b2a8c74255b23911597609ea051c6e6b098ffd1be7e4223c637d82a9fc3f786ea5c0a921b7804aa5bd448d579c34e3531b14da84a82d3cb5b57d1df7ec
|
7
|
+
data.tar.gz: aea7d665745ff0346baf599ec53498e8b7c1b1b047408e2b5cca518633048948d44c929b8795523db8ddecda7b7f808630f10ff4715d50014de21f38f5fce755
|
data/config/default.yml
CHANGED
@@ -22,6 +22,7 @@ AllCops:
|
|
22
22
|
- "data/**/*"
|
23
23
|
- "**/bin/*"
|
24
24
|
- "**/db/migrate/*.rb"
|
25
|
+
- "**/db/queue_migrate/*.rb"
|
25
26
|
- "**/db/schema.rb"
|
26
27
|
- "**/node_modules/**/*"
|
27
28
|
|
@@ -38,7 +39,7 @@ Gemspec/RequireMFA:
|
|
38
39
|
# ==== NAMING ====
|
39
40
|
Naming/BlockForwarding:
|
40
41
|
Enabled: true
|
41
|
-
EnforcedStyle:
|
42
|
+
EnforcedStyle: anonymous
|
42
43
|
|
43
44
|
# ==== SECURITY ====
|
44
45
|
Security/CompoundHash:
|
data/config/layout.yml
CHANGED
@@ -1,14 +1,30 @@
|
|
1
1
|
Layout/ArgumentAlignment:
|
2
2
|
Enabled: true
|
3
|
+
EnforcedStyle: with_fixed_indentation
|
3
4
|
|
4
5
|
Layout/ArrayAlignment:
|
5
6
|
Enabled: true
|
7
|
+
EnforcedStyle: with_fixed_indentation
|
8
|
+
|
9
|
+
Layout/AssignmentIndentation:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Layout/BeginEndAlignment:
|
13
|
+
Enabled: true
|
14
|
+
EnforcedStyleAlignWith: start_of_line
|
6
15
|
|
7
16
|
Layout/BlockAlignment:
|
8
17
|
EnforcedStyleAlignWith: start_of_block
|
9
18
|
Exclude:
|
10
19
|
- "**/*.erb"
|
11
20
|
|
21
|
+
Layout/BlockEndNewline:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Layout/CaseIndentation:
|
25
|
+
Enabled: true
|
26
|
+
EnforcedStyle: end
|
27
|
+
|
12
28
|
Layout/ClassStructure:
|
13
29
|
ExpectedOrder:
|
14
30
|
- module_inclusion
|
@@ -26,16 +42,35 @@ Layout/ClassStructure:
|
|
26
42
|
- private_delegate
|
27
43
|
- private_methods
|
28
44
|
|
29
|
-
Layout/
|
45
|
+
Layout/ClosingHeredocIndentation:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Layout/ClosingParenthesisIndentation:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Layout/ConditionPosition:
|
30
52
|
Enabled: true
|
31
|
-
EnforcedStyle: end
|
32
53
|
|
33
54
|
Layout/CommentIndentation:
|
34
55
|
Enabled: true
|
56
|
+
AllowForAlignment: true
|
57
|
+
|
58
|
+
Layout/DefEndAlignment:
|
59
|
+
Enabled: true
|
60
|
+
EnforcedStyleAlignWith: start_of_line
|
61
|
+
|
62
|
+
Layout/DotPosition:
|
63
|
+
Enabled: true
|
64
|
+
EnforcedStyle: leading
|
35
65
|
|
36
66
|
Layout/ElseAlignment:
|
37
67
|
Enabled: true
|
38
68
|
|
69
|
+
Layout/EmptyComment:
|
70
|
+
Enabled: true
|
71
|
+
AllowBorderComment: true
|
72
|
+
AllowMarginComment: true
|
73
|
+
|
39
74
|
Layout/EmptyLineAfterMagicComment:
|
40
75
|
Enabled: true
|
41
76
|
|
@@ -54,6 +89,30 @@ Layout/EmptyLinesAroundModuleBody:
|
|
54
89
|
Enabled: true
|
55
90
|
EnforcedStyle: no_empty_lines
|
56
91
|
|
92
|
+
Layout/EmptyLinesAroundAccessModifier:
|
93
|
+
Enabled: true
|
94
|
+
EnforcedStyle: around
|
95
|
+
|
96
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
97
|
+
Enabled: true
|
98
|
+
AllowAliasSyntax: true
|
99
|
+
AllowedMethods:
|
100
|
+
- alias_method
|
101
|
+
- public
|
102
|
+
- protected
|
103
|
+
- private
|
104
|
+
|
105
|
+
Layout/EmptyLinesAroundBeginBody:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Layout/EmptyLineBetweenDefs:
|
109
|
+
Enabled: true
|
110
|
+
EmptyLineBetweenMethodDefs: true
|
111
|
+
EmptyLineBetweenClassDefs: true
|
112
|
+
EmptyLineBetweenModuleDefs: true
|
113
|
+
AllowAdjacentOneLineDefs: true
|
114
|
+
NumberOfEmptyLines: 1
|
115
|
+
|
57
116
|
# Align `end` with the matching keyword or starting expression except for
|
58
117
|
# assignments, where it should be aligned with the LHS.
|
59
118
|
Layout/EndAlignment:
|
@@ -61,6 +120,16 @@ Layout/EndAlignment:
|
|
61
120
|
EnforcedStyleAlignWith: variable
|
62
121
|
AutoCorrect: true
|
63
122
|
|
123
|
+
Layout/EndOfLine:
|
124
|
+
Enabled: true
|
125
|
+
EnforcedStyle: native
|
126
|
+
|
127
|
+
Layout/ExtraSpacing:
|
128
|
+
Enabled: true
|
129
|
+
AllowForAlignment: true
|
130
|
+
AllowBeforeTrailingComments: false
|
131
|
+
ForceEqualSignAlignment: false
|
132
|
+
|
64
133
|
Layout/FirstArgumentIndentation:
|
65
134
|
EnforcedStyle: consistent
|
66
135
|
|
@@ -69,12 +138,14 @@ Layout/FirstArrayElementIndentation:
|
|
69
138
|
|
70
139
|
Layout/FirstArrayElementLineBreak:
|
71
140
|
Enabled: true
|
141
|
+
AllowMultilineFinalElement: false
|
72
142
|
|
73
143
|
Layout/FirstHashElementIndentation:
|
74
144
|
EnforcedStyle: consistent
|
75
145
|
|
76
146
|
Layout/FirstHashElementLineBreak:
|
77
147
|
Enabled: true
|
148
|
+
AllowMultilineFinalElement: false
|
78
149
|
|
79
150
|
Layout/FirstMethodArgumentLineBreak:
|
80
151
|
Enabled: true
|
@@ -82,18 +153,22 @@ Layout/FirstMethodArgumentLineBreak:
|
|
82
153
|
Layout/FirstMethodParameterLineBreak:
|
83
154
|
Enabled: true
|
84
155
|
|
156
|
+
Layout/HashAlignment:
|
157
|
+
Enabled: true
|
158
|
+
EnforcedHashRocketStyle: key
|
159
|
+
EnforcedColonStyle: key
|
160
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
161
|
+
|
85
162
|
Layout/IndentationConsistency:
|
86
163
|
Enabled: true
|
87
164
|
|
88
165
|
# Detect hard tabs, no hard tabs.
|
89
166
|
Layout/IndentationStyle:
|
90
167
|
Enabled: true
|
168
|
+
EnforcedStyle: spaces
|
91
169
|
|
92
|
-
# Two spaces, no tabs (for indentation).
|
93
|
-
#
|
94
|
-
# Doesn't behave properly with private-only concerns, so it's disabled.
|
95
170
|
Layout/IndentationWidth:
|
96
|
-
Enabled:
|
171
|
+
Enabled: true
|
97
172
|
Exclude:
|
98
173
|
- "**/*.erb"
|
99
174
|
|
@@ -155,6 +230,7 @@ Layout/MultilineMethodParameterLineBreaks:
|
|
155
230
|
Enabled: true
|
156
231
|
|
157
232
|
Layout/ParameterAlignment:
|
233
|
+
Enabled: true
|
158
234
|
EnforcedStyle: with_fixed_indentation
|
159
235
|
|
160
236
|
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
data/config/lint.yml
CHANGED
data/config/style.yml
CHANGED
@@ -76,6 +76,7 @@ Style/FileWrite:
|
|
76
76
|
|
77
77
|
Style/FrozenStringLiteralComment:
|
78
78
|
Enabled: true
|
79
|
+
SafeAutoCorrect: true
|
79
80
|
|
80
81
|
Style/FetchEnvVar:
|
81
82
|
Enabled: true
|
@@ -164,8 +165,6 @@ Style/NumberedParametersLimit:
|
|
164
165
|
|
165
166
|
Style/NumericLiterals:
|
166
167
|
Enabled: true
|
167
|
-
Exclude:
|
168
|
-
- '**/db/migrate/*'
|
169
168
|
|
170
169
|
Style/PercentLiteralDelimiters:
|
171
170
|
Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-inhouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nolan J Tait
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.5.
|
171
|
+
rubygems_version: 3.5.22
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Rubocop configuration for InHouse projects
|