betterlint 1.4.1 → 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: d33fd3ef06ee7f731fa4e879cc87429f7d7e833e0687a761439628ccb4424922
4
- data.tar.gz: 690aa6d3a567b3718a5ae7bb6d354d3cd1162cd15ff9d069dba24cbaba9f4318
3
+ metadata.gz: f96af95f3c44dbce17ce8e1ba118e43de40db476414e00ec13b38aed22d4ffce
4
+ data.tar.gz: 15f78ac9bd50dc6a4ee4b9be454c1182470bbbcab9c45a453f96bb19d3e204b2
5
5
  SHA512:
6
- metadata.gz: 3a5a1cffd033ed6b46008c0e72b3a2d81d003d99138cb22b85fcbac76b60972ab55db3a8d61e50f7735c5f14c5958038e2748dfbd41d335e097a9f2eb63a24a2
7
- data.tar.gz: 57b13761e63538931f32e4c55aceececca5a7c579b4318cb39881c7c090765361b00848bb884d9360c4bca5928be4221eb5d21982ebbe272c7209e422da63c1c
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.1
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
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '2.7'
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: '0'
82
+ version: '2.7'
83
83
  description: Betterment rubocop configuration
84
84
  email:
85
85
  - development@betterment.com
@@ -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