rubocop-inhouse 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d160ba6828e46ab71ef1afdf695c9acf928c600199dc08d1fd53350059b3e3
4
- data.tar.gz: f0c637b591446b93c3129a7f7bff6a1b0d8bf9811b7931f4555e7b489c468ed2
3
+ metadata.gz: 490ddeda7284c28a3e8188bfe8bb716217b87be5a2a6cccf61dfe652c10318e3
4
+ data.tar.gz: e5d9a549d635c0748998d0e05af3daab09df255b155ba3acda3164db3f83da57
5
5
  SHA512:
6
- metadata.gz: f99a568c805e79b5e3fa34726ceea2bb5793c30c7190c40b2016705e6fed324983d0503109daf91c64d89358d767f3ad00359aaeb0b437108110dc9045c8a606
7
- data.tar.gz: cb7b055f488480d1550f3c4fb3f59581003abd1d18a0fc966711adb20df10bc8bd7cad5145ebaf1159f34e2a912f290427d3f8da45a622f6aa027e14fa622feb
6
+ metadata.gz: cf42922b5e83e05152e03d58efc41f5ca906aa3343764e6d97844a5db8a6b8afe88cc4c9724ea9bf829bb5957aba7cebe08d3d08f461bd57b1565d897f87ca92
7
+ data.tar.gz: e4bb99756404c3720316a8d1654012e2366e4f99c3406f78acf227913904c5e7a880a42282444139c6030900dffd3c6f514d2f0b563ecf620b92e86bf127a5aa
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
 
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/CaseIndentation:
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: false
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/style.yml CHANGED
@@ -164,8 +164,6 @@ Style/NumberedParametersLimit:
164
164
 
165
165
  Style/NumericLiterals:
166
166
  Enabled: true
167
- Exclude:
168
- - '**/db/migrate/*'
169
167
 
170
168
  Style/PercentLiteralDelimiters:
171
169
  Enabled: true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Inhouse
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
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.0
4
+ version: 0.2.1
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-08-23 00:00:00.000000000 Z
11
+ date: 2024-09-28 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.11
171
+ rubygems_version: 3.5.16
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Rubocop configuration for InHouse projects