runger_style 4.5.0 → 5.0.0
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/CHANGELOG.md +7 -0
- data/Gemfile.lock +2 -2
- data/lib/runger_style/cops/argument_alignment.rb +11 -0
- data/lib/runger_style/cops/first_argument_indentation.rb +1 -1
- data/lib/runger_style/version.rb +1 -1
- data/rulesets/default.yml +12 -12
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1793f39aa3f4f87a16d2e30cf1a42a44943e454c3707ed01e0398951bd63d194
|
4
|
+
data.tar.gz: d67dace26d09663ee0d7dfde5ad27bbcbc6a71b589d79dd4dc2ed22e7709fda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66066715997b348739ee04cb4c02e0e3321a2e7153fc6d65015f933b84ef42cb26ba963670aca99af4794dae9e75bde521c42faf45a8435f86fef5d94614cda2
|
7
|
+
data.tar.gz: 25734489402134d54f84ec8ea0adc2f6de8e8d9ce2e8524ff915119474048a5dd57dd6c61f327d0d3164ccf69254e0e5429fce9642c5e84166b72c7265f035b0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## v5.0.0 (2025-02-11)
|
2
|
+
- **BREAKING:** Rename `MemoizingMethods` config option for `RungerStyle/FirstArgumentIndentation` to `DecoratorMethods`.
|
3
|
+
- Add `helper_method` to default `RungerStyle/FirstArgumentIndentation` `DecoratorMethods`.
|
4
|
+
- Add `RungerStyle/ArgumentAlignment` cop, which ignores [macro](https://rubydoc.info/github/rubocop/rubocop-ast/RuboCop/AST/MethodDispatchNode#macro%3F-instance_method) methods.
|
5
|
+
- Remove `Layout/MultilineAssignmentLayout` custom config that included `send`.
|
6
|
+
- Specify `EnforcedStyle: consistent` for `Layout/FirstHashElementIndentation`.
|
7
|
+
|
1
8
|
## v4.5.0 (2025-02-11)
|
2
9
|
- Add custom `RungerStyle/MultilineHashValueIndentation` cop.
|
3
10
|
- Add custom `RungerStyle/FirstArgumentIndentation` cop.
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
runger_style (
|
12
|
+
runger_style (5.0.0)
|
13
13
|
prism (>= 0.24.0)
|
14
14
|
rubocop (>= 1.68.0)
|
15
15
|
|
@@ -211,7 +211,7 @@ CHECKSUMS
|
|
211
211
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
212
212
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
213
213
|
runger_release_assistant (2.0.0) sha256=f4f5708291eaeef1b881208f87a494877fe768739d6e96b7293fc335b28a3865
|
214
|
-
runger_style (
|
214
|
+
runger_style (5.0.0)
|
215
215
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
216
216
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
217
217
|
stringio (3.1.2) sha256=204f1828f85cdb39d57cac4abc6dc44b04505a223f131587f2e20ae3729ba131
|
@@ -15,7 +15,7 @@ module RungerStyle # rubocop:disable Style/ClassAndModuleChildren
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def memoizing_method_names
|
18
|
-
@memoizing_method_names ||= cop_config['
|
18
|
+
@memoizing_method_names ||= cop_config['DecoratorMethods'].map(&:to_sym)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/runger_style/version.rb
CHANGED
data/rulesets/default.yml
CHANGED
@@ -13,6 +13,8 @@ Bundler/GemVersion:
|
|
13
13
|
Layout:
|
14
14
|
Exclude:
|
15
15
|
- db/schema.rb
|
16
|
+
Layout/ArgumentAlignment:
|
17
|
+
Enabled: false # Instead, we use RungerStyle/ArgumentAlignment.
|
16
18
|
Layout/BlockAlignment:
|
17
19
|
EnforcedStyleAlignWith: start_of_block
|
18
20
|
Layout/ClassStructure:
|
@@ -36,6 +38,8 @@ Layout/FirstArgumentIndentation:
|
|
36
38
|
Enabled: false # Instead, we use RungerStyle/FirstArgumentIndentation.
|
37
39
|
Layout/FirstArrayElementIndentation:
|
38
40
|
EnforcedStyle: consistent
|
41
|
+
Layout/FirstHashElementIndentation:
|
42
|
+
EnforcedStyle: consistent
|
39
43
|
Layout/FirstMethodArgumentLineBreak:
|
40
44
|
AllowMultilineFinalElement: true
|
41
45
|
Layout/LineEndStringConcatenationIndentation:
|
@@ -51,15 +55,6 @@ Layout/LineLength:
|
|
51
55
|
# Ignore RSpec description strings:
|
52
56
|
- !ruby/regexp /^ *(context|describe|it) ['"].*['"].* do$/
|
53
57
|
Max: 100
|
54
|
-
Layout/MultilineAssignmentLayout:
|
55
|
-
SupportedTypes:
|
56
|
-
- block
|
57
|
-
- case
|
58
|
-
- class
|
59
|
-
- if
|
60
|
-
- kwbegin
|
61
|
-
- module
|
62
|
-
- send # This (method calls) is not in the default list.
|
63
58
|
Layout/MultilineMethodCallIndentation:
|
64
59
|
EnforcedStyle: indented
|
65
60
|
Layout/MultilineOperationIndentation:
|
@@ -104,13 +99,18 @@ Naming/RescuedExceptionsVariableName:
|
|
104
99
|
Enabled: false
|
105
100
|
Naming/VariableNumber:
|
106
101
|
Enabled: false
|
102
|
+
RungerStyle/ArgumentAlignment:
|
103
|
+
EnforcedStyle: with_first_argument
|
104
|
+
SupportedStyles:
|
105
|
+
- with_first_argument
|
107
106
|
RungerStyle/FirstArgumentIndentation:
|
108
|
-
EnforcedStyle:
|
109
|
-
|
107
|
+
EnforcedStyle: consistent
|
108
|
+
DecoratorMethods:
|
109
|
+
- helper_method
|
110
110
|
- memo_wise
|
111
111
|
- memoize
|
112
112
|
SupportedStyles:
|
113
|
-
-
|
113
|
+
- consistent
|
114
114
|
Style:
|
115
115
|
Exclude:
|
116
116
|
- db/schema.rb
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runger_style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- bin/rspec
|
67
67
|
- bin/rubocop
|
68
68
|
- lib/runger_style.rb
|
69
|
+
- lib/runger_style/cops/argument_alignment.rb
|
69
70
|
- lib/runger_style/cops/first_argument_indentation.rb
|
70
71
|
- lib/runger_style/cops/multiline_hash_value_indentation.rb
|
71
72
|
- lib/runger_style/cops/multiline_method_arguments_line_breaks.rb
|