runger_style 5.18.0 → 5.19.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 +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/ruby.yml +2 -2
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +5 -5
- data/lib/runger_style/cops/default/empty_line_after_macro.rb +2 -0
- data/lib/runger_style/version.rb +1 -1
- data/rulesets/default.yml +0 -13
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d1d3a34748b24f7d8f759a665330293302f5abccf12e45351977d2a5ab22073
|
|
4
|
+
data.tar.gz: 78e507e1108019f55790202ebd1193f9e32127b098e0fe22a79ffe735546fb71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dbad47d17651599e114723a211e2628d3a644bff05b5f5e0c2d2992ee05a3e766f65dd8a88f932b80de7c74abb3af5326c0e6540af5e06a19ea7784175da64c
|
|
7
|
+
data.tar.gz: 07aa86c73fbc5e9b8469e400c95fbba6b8ddc95c08e78899b2667a9fa241946bb04298de61addbb3faf743fd42ab6e8061af673925ea6786a4f68935c1a59af0
|
data/.github/dependabot.yml
CHANGED
data/.github/workflows/ruby.yml
CHANGED
|
@@ -16,10 +16,10 @@ jobs:
|
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
steps:
|
|
18
18
|
- name: Check out code
|
|
19
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
20
|
|
|
21
21
|
- name: Set up Ruby
|
|
22
|
-
uses: ruby/setup-ruby@v1
|
|
22
|
+
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
23
23
|
with:
|
|
24
24
|
bundler-cache: true
|
|
25
25
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
## Unreleased
|
|
2
2
|
[no unreleased changes yet]
|
|
3
3
|
|
|
4
|
+
## v5.19.1 (2026-08-24)
|
|
5
|
+
- [default] Fix false positives from `RungerStyle/EmptyLineAfterMacro` for `||=` setter calls.
|
|
6
|
+
|
|
7
|
+
## v5.19.0 (2026-08-23)
|
|
8
|
+
- Remove eight methods from `Style/MethodCallWithArgsParentheses` allowlist.
|
|
9
|
+
- Remove five methods from `Style/MethodCallWithArgsParentheses` allowlist.
|
|
10
|
+
|
|
4
11
|
## v5.18.0 (2026-08-22)
|
|
5
12
|
- [default] Add `RungerStyle/ParenthesesAroundMultilineCondition` to require parentheses around multiline `if`, `unless`, and `elsif` conditions, except for multiline block conditions and parenthesized receivers.
|
|
6
13
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
GIT
|
|
2
2
|
remote: https://github.com/davidrunger/pry-byebug.git
|
|
3
|
-
revision:
|
|
3
|
+
revision: 51186eb9f662417e3a76f7c2b60cc2c2a05f182a
|
|
4
4
|
specs:
|
|
5
5
|
pry-byebug (3.10.1)
|
|
6
6
|
pry (>= 0.13)
|
|
@@ -10,7 +10,7 @@ GIT
|
|
|
10
10
|
PATH
|
|
11
11
|
remote: .
|
|
12
12
|
specs:
|
|
13
|
-
runger_style (5.
|
|
13
|
+
runger_style (5.19.1)
|
|
14
14
|
prism (>= 0.24.0)
|
|
15
15
|
rubocop (>= 1.72.0)
|
|
16
16
|
|
|
@@ -72,7 +72,7 @@ GEM
|
|
|
72
72
|
rack (3.2.7)
|
|
73
73
|
rainbow (3.1.1)
|
|
74
74
|
rake (13.4.2)
|
|
75
|
-
rbs (4.
|
|
75
|
+
rbs (4.2.0)
|
|
76
76
|
logger
|
|
77
77
|
prism (>= 1.6.0)
|
|
78
78
|
tsort
|
|
@@ -213,7 +213,7 @@ CHECKSUMS
|
|
|
213
213
|
rack (3.2.7) sha256=93e13e1c24f93556671d85d2d79fa228c3485815c50d7e2f265b5330c6528fb7
|
|
214
214
|
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
215
215
|
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
216
|
-
rbs (4.
|
|
216
|
+
rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
|
|
217
217
|
rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
|
|
218
218
|
readline (0.0.4) sha256=6138eef17be2b98298b672c3ea63bf9cb5158d401324f26e1e84f235879c1d6a
|
|
219
219
|
regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
|
|
@@ -235,7 +235,7 @@ CHECKSUMS
|
|
|
235
235
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
236
236
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
|
237
237
|
runger_release_assistant (4.3.1) sha256=3246c925240739eb12b9e6b9526a77ea00fcf0a0941441ff5ffacefb7e3e4d83
|
|
238
|
-
runger_style (5.
|
|
238
|
+
runger_style (5.19.1)
|
|
239
239
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
240
240
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
|
241
241
|
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
@@ -28,6 +28,8 @@ module RungerStyle # rubocop:disable Style/ClassAndModuleChildren
|
|
|
28
28
|
method_call = node
|
|
29
29
|
if node.any_block_type?
|
|
30
30
|
method_call = node.send_node
|
|
31
|
+
elsif node.or_asgn_type?
|
|
32
|
+
method_call = node.assignment_node
|
|
31
33
|
end
|
|
32
34
|
|
|
33
35
|
if method_call.send_type? && macro_call?(method_call)
|
data/lib/runger_style/version.rb
CHANGED
data/rulesets/default.yml
CHANGED
|
@@ -186,7 +186,6 @@ Style/MethodCallWithArgsParentheses:
|
|
|
186
186
|
- add_index
|
|
187
187
|
- add_reference
|
|
188
188
|
- and
|
|
189
|
-
- belongs_to
|
|
190
189
|
- bigint
|
|
191
190
|
- boolean
|
|
192
191
|
- change
|
|
@@ -196,16 +195,11 @@ Style/MethodCallWithArgsParentheses:
|
|
|
196
195
|
- change_table
|
|
197
196
|
- create_table
|
|
198
197
|
- datetime
|
|
199
|
-
- desc
|
|
200
198
|
- describe
|
|
201
199
|
- drop_table
|
|
202
|
-
- fail
|
|
203
|
-
- file
|
|
204
200
|
- float
|
|
205
201
|
- foreign_key
|
|
206
|
-
- gem
|
|
207
202
|
- head
|
|
208
|
-
- include
|
|
209
203
|
- index
|
|
210
204
|
- inet
|
|
211
205
|
- integer
|
|
@@ -213,24 +207,17 @@ Style/MethodCallWithArgsParentheses:
|
|
|
213
207
|
- jsonb
|
|
214
208
|
- load
|
|
215
209
|
- not_to
|
|
216
|
-
- p
|
|
217
|
-
- print
|
|
218
|
-
- puts
|
|
219
210
|
- references
|
|
220
211
|
- remove_column
|
|
221
212
|
- remove_index
|
|
222
213
|
- render
|
|
223
214
|
- require
|
|
224
215
|
- require_relative
|
|
225
|
-
- ruby
|
|
226
|
-
- run
|
|
227
|
-
- source
|
|
228
216
|
- string
|
|
229
217
|
- text
|
|
230
218
|
- timestamp
|
|
231
219
|
- timestamps
|
|
232
220
|
- to
|
|
233
|
-
- visit
|
|
234
221
|
Style/MethodCalledOnDoEndBlock:
|
|
235
222
|
Enabled: false
|
|
236
223
|
Style/MissingElse:
|