betterlint 1.2.2 → 1.3.1

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: d3c9bfec949a3d8c5fe6f8bd9346def3b15776406b4e47e787b2d3f3ec531896
4
- data.tar.gz: e38dd2adeb14b5bc887fdbd4abdf08aae9e30b889b3f9610fbd328c0bf7adcb5
3
+ metadata.gz: ce3c58a36213288dc8a00fada7143d6f6494e1625e4ea1863f4bc3a460a0e0f3
4
+ data.tar.gz: 2a06ea46d279cbdcc5c78c8850db4023ac862f8d5b0dc8de7109428ef06a445c
5
5
  SHA512:
6
- metadata.gz: 6d715a22437ca55e04429d69425f134e7258b3b9c3a8d7053e0b0f413846d0da9063131f155bc11d730b9c5f77aa1dde18922e28f7d98a9bacfc306f8cc806a6
7
- data.tar.gz: ff3c967e3b83c9abb23d5f9e7b81f1920bf90b9debe5ca14dfd9e314268d82e0a1941df9834c1661b4a738a21b68c038e7709ee19810bb24b733dd44610bbe53
6
+ metadata.gz: 55323d12ee9b064b77f66067df837ffb68a3b9dd055b6a5bef7ecf16c86a0d6f798ea5ff36b2ec2b1348cad507a4494b4a91560850bac736f98b35488f4a9a87
7
+ data.tar.gz: a92da3b7813d65df914fa9cca948338328b987dbab1fa1e559dd9b7a2932a2b7c81ff5e40628df1b2a952b1febfc0488cf76d275acbe8a6fab56990cb127a087
data/config/default.yml CHANGED
@@ -19,6 +19,7 @@ AllCops:
19
19
  - 'Gemfile'
20
20
  DisplayStyleGuide: true
21
21
  DisplayCopNames: true
22
+ NewCops: enable
22
23
 
23
24
  Betterment:
24
25
  StyleGuideBaseURL: https://github.com/Betterment/betterlint
@@ -92,7 +92,7 @@ module RuboCop
92
92
 
93
93
  def with_comma(attribute)
94
94
  range = attribute.location.expression
95
- range = range_with_surrounding_space(range)
95
+ range = range_with_surrounding_space(range: range)
96
96
  range_with_surrounding_comma(range, :left)
97
97
  end
98
98
  end
@@ -21,7 +21,7 @@ module RuboCop
21
21
 
22
22
  def on_def(node)
23
23
  (method_name, ivar_assign) = memoized?(node)
24
- return if ivar_assign.nil? || node.arguments.length.zero? || method_name == :initialize
24
+ return if ivar_assign.nil? || node.arguments.empty? || method_name == :initialize
25
25
 
26
26
  msg = format(MSG, method: method_name)
27
27
  add_offense(node, location: ivar_assign.source_range, message: msg)
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.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -80,48 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: 12.3.3
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 12.3.3
111
- - !ruby/object:Gem::Dependency
112
- name: rspec-rails
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
83
  description: Betterment rubocop configuration
126
84
  email:
127
85
  - development@betterment.com