betterlint 1.4.3 → 1.4.5

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: f96af95f3c44dbce17ce8e1ba118e43de40db476414e00ec13b38aed22d4ffce
4
- data.tar.gz: 15f78ac9bd50dc6a4ee4b9be454c1182470bbbcab9c45a453f96bb19d3e204b2
3
+ metadata.gz: fc2eb553c04aeb5d999ed82b5fe98a4758a5759ec88bb7c57063c57fde5396e5
4
+ data.tar.gz: b0279579beb709a42d671b1ee6fb41e63d64af140848c97d020945ac5dc9b8fd
5
5
  SHA512:
6
- metadata.gz: 6f695265bb6d95be561270e4c4c038c0108c5b8f80b35d271916c88fa27d774b473fc60e0eb8fb8cc41cc1f6ac4f081dce03bbe9ddb78a06dbbea29fc5e33286
7
- data.tar.gz: 3a6c6fcd3241230b9015b47697fabd3120795ff5217f23f84dbe6967fe1b31a2d202b715817ed0e3f0de5ddf6acd8590f02780e5f24f5620a47b3f44a74859c1
6
+ metadata.gz: 8104f08c53606e54bd3c52bc751c4ad5fa26868053fde61b82448210747421f30a02797daeec704b73944a59f206424a47847cb920c2a9c0fed94aeb5013571c
7
+ data.tar.gz: 4010375c1230443402336a289c0a2aefe375d2e7d745e2f38ed46c100c70b824b5c502e1beafe885ac811ee71562c7d78a77a8405d74a41dad1a20fca08eee8d
data/config/default.yml CHANGED
@@ -20,6 +20,8 @@ AllCops:
20
20
  DisplayStyleGuide: true
21
21
  DisplayCopNames: true
22
22
  NewCops: enable
23
+ SuggestExtensions:
24
+ rubocop-capybara: false
23
25
 
24
26
  Betterment:
25
27
  StyleGuideBaseURL: https://github.com/Betterment/betterlint
@@ -217,7 +219,7 @@ RSpec/ExampleWording:
217
219
  RSpec/ExpectChange:
218
220
  EnforcedStyle: 'block'
219
221
 
220
- RSpec/FactoryBot/SyntaxMethods:
222
+ FactoryBot/SyntaxMethods:
221
223
  Enabled: false
222
224
 
223
225
  RSpec/FilePath:
@@ -59,9 +59,9 @@ module RuboCop
59
59
  end
60
60
 
61
61
  def self.explicit_returns(node)
62
- node.descendants.select(&:return_type?).map { |x|
62
+ node.descendants.select(&:return_type?).filter_map do |x|
63
63
  x&.children&.first
64
- }.compact
64
+ end
65
65
  end
66
66
 
67
67
  def self.params_from_arguments(arguments) # rubocop:disable Metrics/PerceivedComplexity
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.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-13 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2.7'
75
+ version: '2.22'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2.7'
82
+ version: '2.22'
83
83
  description: Betterment rubocop configuration
84
84
  email:
85
85
  - development@betterment.com
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: '2.6'
125
+ version: '2.7'
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="