betterlint 1.10.1 → 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
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require:
|
4
4
|
- rubocop/cop/betterment.rb
|
5
|
+
- rubocop-graphql
|
5
6
|
- rubocop-performance
|
6
7
|
- rubocop-rails
|
7
8
|
- rubocop-rake
|
@@ -142,6 +143,8 @@ Metrics/AbcSize:
|
|
142
143
|
Exclude:
|
143
144
|
- spec/**/*
|
144
145
|
- webvalve/**/*
|
146
|
+
CountRepeatedAttributes: false
|
147
|
+
Max: 34
|
145
148
|
|
146
149
|
Metrics/BlockLength:
|
147
150
|
Enabled: false
|
@@ -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
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.62.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-graphql
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-performance
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,10 +127,15 @@ files:
|
|
113
127
|
- lib/rubocop/cop/betterment/utils/parser.rb
|
114
128
|
- lib/rubocop/cop/betterment/utils/response_status.rb
|
115
129
|
- lib/rubocop/cop/betterment/vague_serialize.rb
|
116
|
-
homepage:
|
130
|
+
homepage: https://github.com/Betterment/betterlint
|
117
131
|
licenses:
|
118
132
|
- MIT
|
119
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
|
120
139
|
rubygems_mfa_required: 'true'
|
121
140
|
post_install_message:
|
122
141
|
rdoc_options: []
|
@@ -133,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
152
|
- !ruby/object:Gem::Version
|
134
153
|
version: '0'
|
135
154
|
requirements: []
|
136
|
-
rubygems_version: 3.5.
|
155
|
+
rubygems_version: 3.5.11
|
137
156
|
signing_key:
|
138
157
|
specification_version: 4
|
139
158
|
summary: Betterment rubocop configuration
|