betterlint 1.4.2 → 1.4.3

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: 1e93a2bacb559d6455d9e1d7acf0ee3d34e378817b70ff2694d9c7dc5fd051c7
4
- data.tar.gz: 8613c5d928bfa812f75e6092ddb201d7030cee8e9c27ded059487941628a6540
3
+ metadata.gz: f96af95f3c44dbce17ce8e1ba118e43de40db476414e00ec13b38aed22d4ffce
4
+ data.tar.gz: 15f78ac9bd50dc6a4ee4b9be454c1182470bbbcab9c45a453f96bb19d3e204b2
5
5
  SHA512:
6
- metadata.gz: 3dc6e12bc99a8405a25f0902636087ef2f034641f161465c3b337f08ade4a916d3a92b6ec8a4e259afea53aebefe4068214dd2b3faf5bbf0473a4b3617289154
7
- data.tar.gz: c8e15b4f85363fb9ade768e1e012b717a58e168040500639b053fd831a48133174ae67c33cd25229ea8eff885ac90b5228c0c4113be01e411f3f8f92fed35fb6
6
+ metadata.gz: 6f695265bb6d95be561270e4c4c038c0108c5b8f80b35d271916c88fa27d774b473fc60e0eb8fb8cc41cc1f6ac4f081dce03bbe9ddb78a06dbbea29fc5e33286
7
+ data.tar.gz: 3a6c6fcd3241230b9015b47697fabd3120795ff5217f23f84dbe6967fe1b31a2d202b715817ed0e3f0de5ddf6acd8590f02780e5f24f5620a47b3f44a74859c1
data/config/default.yml CHANGED
@@ -280,6 +280,9 @@ Style/FrozenStringLiteralComment:
280
280
  Style/GuardClause:
281
281
  Enabled: false
282
282
 
283
+ Style/IfUnlessModifier:
284
+ Enabled: false
285
+
283
286
  Style/Lambda:
284
287
  Enabled: false
285
288
 
@@ -17,7 +17,7 @@ module RuboCop
17
17
  PATTERN
18
18
 
19
19
  def not_to_or_action?(sym)
20
- !%i(to action).include?(sym) # rubocop:disable Style/InverseMethods
20
+ !%i(to action).include?(sym)
21
21
  end
22
22
 
23
23
  # @!method route_to(node)
@@ -16,7 +16,7 @@ module RuboCop
16
16
 
17
17
  def autocorrect(node)
18
18
  lambda do |corrector|
19
- corrector.replace(node.children[2].source_range, 'be_loaded')
19
+ corrector.replace(node.children[2], 'be_loaded')
20
20
  end
21
21
  end
22
22
  end
@@ -45,7 +45,7 @@ module RuboCop
45
45
  find?(node) ||
46
46
  custom_scope_find?(node) ||
47
47
  static_method_name(node.method_name)
48
- ) && !@unauthenticated_models.include?(Utils::Parser.get_root_token(node)) # rubocop:disable Style/InverseMethods
48
+ ) && !@unauthenticated_models.include?(Utils::Parser.get_root_token(node))
49
49
 
50
50
  add_offense(node) if find_param_arg(arg_nodes)
51
51
  end
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.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.2.32
132
+ rubygems_version: 3.3.7
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Betterment rubocop configuration