reek 6.1.0 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -2
- data/lib/reek/context/module_context.rb +4 -0
- data/lib/reek/context/send_context.rb +6 -0
- data/lib/reek/smell_detectors/unused_private_method.rb +1 -0
- data/lib/reek/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e1e79296b4eb0b93d7b6d7bc7b13704b6831765416cab19c729473d2fe135ea
|
4
|
+
data.tar.gz: f9a49ffd6ad47e308a617bafb0901d438617c863ff5279c867d5db8e9148c0e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea8856c9c0f32543af3bb336790d9875cdf385ed45d2609af219f1857931d1b15de7802386954caff9c68f5753657f138e2eb304ef4ae94edc0e7a0e7e4e070
|
7
|
+
data.tar.gz: 407628086e04a8d2972f1343a34d299e77d462b0236f18e8b4570a9b9dfcd290dc6d690be56c67e06c0fff95326e764254b70c127962f5a90914a73bae115aed
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -13,9 +13,9 @@ group :development do
|
|
13
13
|
gem 'rake', '~> 13.0'
|
14
14
|
gem 'rspec', '~> 3.0'
|
15
15
|
gem 'rspec-benchmark', '~> 0.6.0'
|
16
|
-
gem 'rubocop', '~> 1.
|
16
|
+
gem 'rubocop', '~> 1.27.0'
|
17
17
|
gem 'rubocop-performance', '~> 1.13.1'
|
18
|
-
gem 'rubocop-rspec', '~> 2.
|
18
|
+
gem 'rubocop-rspec', '~> 2.9.0'
|
19
19
|
gem 'simplecov', ['>= 0.18.0', '< 0.22.0']
|
20
20
|
gem 'yard', '~> 0.9.5'
|
21
21
|
|
@@ -61,6 +61,7 @@ module Reek
|
|
61
61
|
def unused_private_methods
|
62
62
|
defined_private_methods = context.defined_instance_methods(visibility: :private)
|
63
63
|
called_method_names = context.instance_method_calls.map(&:name)
|
64
|
+
called_method_names.concat(context.instance_method_names_via_to_call)
|
64
65
|
|
65
66
|
defined_private_methods.reject do |defined_method|
|
66
67
|
called_method_names.include?(defined_method.name)
|
data/lib/reek/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Rutherford
|
8
8
|
- Timo Roessner
|
9
9
|
- Matijs van Zuijlen
|
10
10
|
- Piotr Szotkowski
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: kwalify
|
@@ -244,7 +244,7 @@ metadata:
|
|
244
244
|
changelog_uri: https://github.com/troessner/reek/CHANGELOG.md
|
245
245
|
documentation_uri: https://www.rubydoc.info/gems/reek
|
246
246
|
rubygems_mfa_required: 'true'
|
247
|
-
post_install_message:
|
247
|
+
post_install_message:
|
248
248
|
rdoc_options:
|
249
249
|
- "--main"
|
250
250
|
- README.md
|
@@ -263,8 +263,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
|
-
rubygems_version: 3.
|
267
|
-
signing_key:
|
266
|
+
rubygems_version: 3.1.6
|
267
|
+
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: Code smell detector for Ruby
|
270
270
|
test_files: []
|