betterlint 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a1f05775f08c12a1a5252a3f199ea8e1fe5864f0abc8725dcb0cfb67cced683
|
4
|
+
data.tar.gz: 98b2dc8b01585b4533a1fb4a167e7bf7764b876c40d3c58fb31af7a3379ec755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f77d0ff1d7c4f7aedaeded31e1785cf831f8d97908638f60837243ea3299584afb844e940d3dddd13868fa17d69b23bf193166ad441750db9a2a4b7768b30b3
|
7
|
+
data.tar.gz: 7931923fe8d0dec31f990341c181ef79334e767c5ec268b436853e11b7aa06082c69708be7d04608f115aabb8af3a4f06615642b44a5ca2238f00252a697d9b8
|
data/config/default.yml
CHANGED
@@ -51,7 +51,7 @@ module RuboCop
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
def on_send(node) # rubocop:disable Metrics/
|
54
|
+
def on_send(node) # rubocop:disable Metrics/PerceivedComplexity
|
55
55
|
return if !model_new?(node) && !model_update?(node)
|
56
56
|
|
57
57
|
node.arguments.each do |argument|
|
@@ -88,7 +88,7 @@ module RuboCop
|
|
88
88
|
|
89
89
|
# Flags objects being created/updated with unsafe
|
90
90
|
# params indirectly from params or through params.permit
|
91
|
-
def flag_indirect_param_use(node) # rubocop:disable Metrics/
|
91
|
+
def flag_indirect_param_use(node) # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
|
92
92
|
name = Utils::Parser.get_root_token(node)
|
93
93
|
# extracted_params contains parameters used like:
|
94
94
|
# def create
|
@@ -5,7 +5,7 @@ module RuboCop
|
|
5
5
|
module Betterment
|
6
6
|
module Utils
|
7
7
|
module Parser
|
8
|
-
def self.get_root_token(node) # rubocop:disable Metrics/PerceivedComplexity
|
8
|
+
def self.get_root_token(node) # rubocop:disable Metrics/PerceivedComplexity
|
9
9
|
return nil unless node
|
10
10
|
|
11
11
|
return get_root_token(node.receiver) if node.receiver
|
@@ -33,7 +33,7 @@ module RuboCop
|
|
33
33
|
name
|
34
34
|
end
|
35
35
|
|
36
|
-
def self.get_return_values(node)
|
36
|
+
def self.get_return_values(node)
|
37
37
|
return [] unless node
|
38
38
|
return explicit_returns(node) + get_return_values(node.body) if node.def_type?
|
39
39
|
return [node] if node.literal? || node.variable?
|
@@ -84,7 +84,7 @@ module RuboCop
|
|
84
84
|
parameter_names
|
85
85
|
end
|
86
86
|
|
87
|
-
def self.get_extracted_parameters(node, param_aliases: []) # rubocop:disable Metrics/
|
87
|
+
def self.get_extracted_parameters(node, param_aliases: []) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
88
88
|
return [] unless node.send_type?
|
89
89
|
|
90
90
|
parameter_names = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterlint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Development
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -127,10 +127,15 @@ files:
|
|
127
127
|
- lib/rubocop/cop/betterment/utils/parser.rb
|
128
128
|
- lib/rubocop/cop/betterment/utils/response_status.rb
|
129
129
|
- lib/rubocop/cop/betterment/vague_serialize.rb
|
130
|
-
homepage:
|
130
|
+
homepage: https://github.com/Betterment/betterlint
|
131
131
|
licenses:
|
132
132
|
- MIT
|
133
133
|
metadata:
|
134
|
+
homepage_uri: https://github.com/Betterment/betterlint
|
135
|
+
source_code_uri: https://github.com/Betterment/betterlint/tree/v1.12.0
|
136
|
+
changelog_uri: https://github.com/Betterment/betterlint/blob/v1.12.0/CHANGELOG.md
|
137
|
+
bug_tracker_uri: https://github.com/Betterment/betterlint/issues
|
138
|
+
documentation_uri: https://www.rubydoc.info/gems/betterlint/1.12.0
|
134
139
|
rubygems_mfa_required: 'true'
|
135
140
|
post_install_message:
|
136
141
|
rdoc_options: []
|
@@ -147,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
152
|
- !ruby/object:Gem::Version
|
148
153
|
version: '0'
|
149
154
|
requirements: []
|
150
|
-
rubygems_version: 3.5.
|
155
|
+
rubygems_version: 3.5.11
|
151
156
|
signing_key:
|
152
157
|
specification_version: 4
|
153
158
|
summary: Betterment rubocop configuration
|