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: 7eb5c7ed26f89c821f0319b2c474bed54ea591ba5e3b131f980b03e877693855
4
- data.tar.gz: fe1fe8ca996cca9fd3b6380c2360695a875d48c37ec1017064d92769349ca8a3
3
+ metadata.gz: 7a1f05775f08c12a1a5252a3f199ea8e1fe5864f0abc8725dcb0cfb67cced683
4
+ data.tar.gz: 98b2dc8b01585b4533a1fb4a167e7bf7764b876c40d3c58fb31af7a3379ec755
5
5
  SHA512:
6
- metadata.gz: 31d148d653926781736d4725d66ddaec2e4c76502f51e5a43d61fb918744da04a8268b9afd8680506583b2621b91a0412adbf1f839873318c585a0e124b3a74a
7
- data.tar.gz: a04c4263391347e8ffef907f86538a9732ce894e06283ba378d1e0adefb867f67776e5d5eb8e1c612ff0bb73252724ff1c8d4011e42bc29af964ae85a918b9fc
6
+ metadata.gz: 8f77d0ff1d7c4f7aedaeded31e1785cf831f8d97908638f60837243ea3299584afb844e940d3dddd13868fa17d69b23bf193166ad441750db9a2a4b7768b30b3
7
+ data.tar.gz: 7931923fe8d0dec31f990341c181ef79334e767c5ec268b436853e11b7aa06082c69708be7d04608f115aabb8af3a4f06615642b44a5ca2238f00252a697d9b8
data/config/default.yml CHANGED
@@ -143,6 +143,8 @@ Metrics/AbcSize:
143
143
  Exclude:
144
144
  - spec/**/*
145
145
  - webvalve/**/*
146
+ CountRepeatedAttributes: false
147
+ Max: 34
146
148
 
147
149
  Metrics/BlockLength:
148
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/AbcSize, Metrics/PerceivedComplexity
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/AbcSize, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
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, Metrics/AbcSize
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) # rubocop:disable Metrics/AbcSize
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/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
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.11.0
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-05-03 00:00:00.000000000 Z
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.7
155
+ rubygems_version: 3.5.11
151
156
  signing_key:
152
157
  specification_version: 4
153
158
  summary: Betterment rubocop configuration