pronto-reek 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +3 -0
- data/.github/workflows/checks.yml +22 -0
- data/lib/pronto/reek.rb +6 -3
- data/lib/pronto/reek/version.rb +1 -1
- data/pronto-reek.gemspec +2 -2
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebed4d6ab7362fe0f4f1b37c40c5ba95edaa6a5c1b0f960e20322d613e1c8495
|
4
|
+
data.tar.gz: 6005887397fc4ee0ac778ea0a1bb7098487902b4b0fdf0ea4bab4184e92a1b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22f5252739818daea901f4d555b532e62a5b8137fe5256c68f8c8885f558c129b7909669d2ec12c0f325a2807b7b184ee6411d53095d6662a12dbcae495915e1
|
7
|
+
data.tar.gz: e91411b91f0784f905e8cfb2c02c750e8de205387bf045b23b9ea20babb43293b96f00b7f9b3ba3c6b9be922326f3e3017a058f64ab69f973501b7c6dece533a
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Checks
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ruby:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
bundler-cache: true
|
21
|
+
- name: rake spec
|
22
|
+
run: bundle exec rake spec
|
data/lib/pronto/reek.rb
CHANGED
@@ -4,7 +4,10 @@ require 'reek'
|
|
4
4
|
module Pronto
|
5
5
|
class Reek < Runner
|
6
6
|
def run
|
7
|
-
files = ruby_patches.map
|
7
|
+
files = ruby_patches.map do |patch|
|
8
|
+
patch.new_file_full_path.relative_path_from(Pathname.pwd)
|
9
|
+
end
|
10
|
+
|
8
11
|
configuration = ::Reek::Configuration::AppConfiguration.from_path(nil)
|
9
12
|
|
10
13
|
smells = files.flat_map do |file|
|
@@ -30,14 +33,14 @@ module Pronto
|
|
30
33
|
|
31
34
|
def new_message(line, error)
|
32
35
|
path = line.patch.delta.new_file[:path]
|
33
|
-
message = "#{error.message.capitalize}
|
36
|
+
message = "#{error.message.capitalize} - [#{error.smell_type}](#{error.explanatory_link})"
|
34
37
|
|
35
38
|
Message.new(path, line, :info, message, nil, self.class)
|
36
39
|
end
|
37
40
|
|
38
41
|
def patch_for_error(error)
|
39
42
|
ruby_patches.find do |patch|
|
40
|
-
patch.new_file_full_path.to_s == error.source
|
43
|
+
patch.new_file_full_path.relative_path_from(Pathname.pwd).to_s == error.source
|
41
44
|
end
|
42
45
|
end
|
43
46
|
end
|
data/lib/pronto/reek/version.rb
CHANGED
data/pronto-reek.gemspec
CHANGED
@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
33
33
|
s.require_paths = ['lib']
|
34
34
|
|
35
|
-
s.add_dependency('pronto', '~> 0.
|
36
|
-
s.add_dependency('reek', '>= 4.2', '<
|
35
|
+
s.add_dependency('pronto', '~> 0.11.0')
|
36
|
+
s.add_dependency('reek', '>= 4.2', '< 7.0')
|
37
37
|
s.add_development_dependency('rake', '~> 12.0')
|
38
38
|
s.add_development_dependency('rspec', '~> 3.4')
|
39
39
|
s.add_development_dependency('rspec-its', '~> 1.2')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-reek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: reek
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '4.2'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '7.0'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '4.2'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '7.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,8 @@ extra_rdoc_files:
|
|
94
94
|
- LICENSE
|
95
95
|
- README.md
|
96
96
|
files:
|
97
|
+
- ".github/CODEOWNERS"
|
98
|
+
- ".github/workflows/checks.yml"
|
97
99
|
- LICENSE
|
98
100
|
- README.md
|
99
101
|
- lib/pronto/reek.rb
|
@@ -118,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
120
|
- !ruby/object:Gem::Version
|
119
121
|
version: '0'
|
120
122
|
requirements: []
|
121
|
-
rubygems_version: 3.0.
|
123
|
+
rubygems_version: 3.0.3
|
122
124
|
signing_key:
|
123
125
|
specification_version: 4
|
124
126
|
summary: Pronto runner for Reek, code smell detector for Ruby
|