reek 5.0.0 → 5.0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc0d57d180b927803a9c3d40fdd8f111f21fb44
|
4
|
+
data.tar.gz: 22de071a46f6e5e8e3f5194ea7bfb4a998f14071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da8afdcc3cb84b35e14a9d9fa0fa0bc069be3512031a4e5fd3114b323b22e39f504afe5d3d115d2370718ce393d551d9c325cce855715a5dfe461dc17f566f6
|
7
|
+
data.tar.gz: 9e8d8e35f4744b81909314da5188fd8a30077cfadd2aa3f14c866df9260d1703bc524212d9a01768ad69371c119a8ead187bd63505cb342df28e7ff7cb5858cc
|
data/CHANGELOG.md
CHANGED
@@ -59,7 +59,7 @@ module Reek
|
|
59
59
|
begin
|
60
60
|
configuration = YAML.load_file(path) || {}
|
61
61
|
rescue StandardError => error
|
62
|
-
raise Errors::
|
62
|
+
raise Errors::ConfigFileError, "Invalid configuration file #{path}, error is #{error}"
|
63
63
|
end
|
64
64
|
|
65
65
|
SchemaValidator.new(configuration).validate
|
data/lib/reek/version.rb
CHANGED
@@ -110,6 +110,14 @@ RSpec.describe Reek::Configuration::ConfigurationFileFinder do
|
|
110
110
|
expect(configuration).to eq(sample_configuration_loaded)
|
111
111
|
end
|
112
112
|
|
113
|
+
it 'raises an error if it can not find the given file' do
|
114
|
+
Dir.mktmpdir do |tempdir|
|
115
|
+
path = Pathname.new(tempdir).join('does_not_exist.reek')
|
116
|
+
expect { described_class.load_from_file(path) }.
|
117
|
+
to raise_error(Reek::Errors::ConfigFileError, /Invalid configuration file/)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
113
121
|
context 'with exclude, accept and reject settings' do
|
114
122
|
context 'when configuring top level detectors' do
|
115
123
|
let(:configuration) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Rutherford
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: codeclimate-engine-rb
|
@@ -93,7 +93,6 @@ extra_rdoc_files:
|
|
93
93
|
- CHANGELOG.md
|
94
94
|
- License.txt
|
95
95
|
files:
|
96
|
-
- ".codeclimate.yml"
|
97
96
|
- ".dockerignore"
|
98
97
|
- ".gitignore"
|
99
98
|
- ".reek.yml"
|
@@ -476,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
476
475
|
version: '0'
|
477
476
|
requirements: []
|
478
477
|
rubyforge_project:
|
479
|
-
rubygems_version: 2.5.
|
478
|
+
rubygems_version: 2.5.1
|
480
479
|
signing_key:
|
481
480
|
specification_version: 4
|
482
481
|
summary: Code smell detector for Ruby
|
data/.codeclimate.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
version: "2"
|
2
|
-
plugins:
|
3
|
-
rubocop:
|
4
|
-
enabled: true
|
5
|
-
reek:
|
6
|
-
enabled: true
|
7
|
-
duplication:
|
8
|
-
enabled: true
|
9
|
-
config:
|
10
|
-
languages:
|
11
|
-
ruby:
|
12
|
-
mass_threshold: 35
|
13
|
-
exclude_patterns:
|
14
|
-
- coverage/
|
15
|
-
- docs/
|
16
|
-
- features/
|
17
|
-
- logo/
|
18
|
-
- pkg/
|
19
|
-
- samples/
|
20
|
-
- spec/
|
21
|
-
- tmp/
|