File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 11
11
addressable (2.7.0 )
12
12
public_suffix (>= 2.0.2 , < 5.0 )
13
13
ansi (1.5.0 )
14
- ast (2.4.0 )
14
+ ast (2.4.1 )
15
15
axiom-types (0.1.1 )
16
16
descendants_tracker (~> 0.0.4 )
17
17
ice_nine (~> 0.11.0 )
18
18
thread_safe (~> 0.3 , >= 0.3.1 )
19
- byebug (11.1.1 )
19
+ byebug (11.1.3 )
20
20
codeclimate-engine-rb (0.4.1 )
21
21
virtus (~> 1.0 )
22
- codecov (0.1.16 )
22
+ codecov (0.1.21 )
23
23
json
24
24
simplecov
25
- url
26
25
coercible (1.0.0 )
27
26
descendants_tracker (~> 0.0.1 )
28
27
descendants_tracker (0.0.4 )
41
40
sexp_processor (~> 4.8 )
42
41
ice_nine (0.11.2 )
43
42
jaro_winkler (1.5.4 )
44
- json (2.3.0 )
43
+ json (2.3.1 )
45
44
kwalify (0.7.2 )
46
45
launchy (2.4.3 )
47
46
addressable (~> 2.3 )
48
47
minitest (5.8.5 )
49
48
minitest-around (0.5.0 )
50
49
minitest (~> 5.0 )
51
- parallel (1.19.1 )
50
+ parallel (1.19.2 )
52
51
parser (2.6.5.0 )
53
52
ast (~> 2.4.0 )
54
53
path_expander (1.1.0 )
55
54
psych (3.1.0 )
56
- public_suffix (4.0.5 )
55
+ public_suffix (4.0.6 )
57
56
rainbow (3.0.0 )
58
57
rake (13.0.1 )
59
58
reek (5.4.1 )
70
69
ruby-progressbar (~> 1.7 )
71
70
unicode-display_width (>= 1.4.0 , < 1.7 )
72
71
ruby-progressbar (1.10.1 )
73
- ruby_parser (3.14.2 )
72
+ ruby_parser (3.15.0 )
74
73
sexp_processor (~> 4.9 )
75
74
rubycritic (4.4.1 )
76
75
flay (~> 2.8 )
83
82
simplecov (>= 0.17.0 )
84
83
tty-which (~> 0.4.0 )
85
84
virtus (~> 1.0 )
86
- sexp_processor (4.15.0 )
85
+ sexp_processor (4.15.1 )
87
86
simplecov (0.18.5 )
88
87
docile (~> 1.1 )
89
88
simplecov-html (~> 0.11 )
97
96
thread_safe (0.3.6 )
98
97
tty-which (0.4.2 )
99
98
unicode-display_width (1.6.1 )
100
- url (0.3.2 )
101
99
virtus (1.0.5 )
102
100
axiom-types (~> 0.1 )
103
101
coercible (~> 1.0 )
@@ -108,7 +106,6 @@ PLATFORMS
108
106
ruby
109
107
110
108
DEPENDENCIES
111
- bundler (~> 2.0 )
112
109
byebug (~> 11 )
113
110
codecov (~> 0.1.16 )
114
111
minitest (~> 5.8.4 )
Original file line number Diff line number Diff line change @@ -12,11 +12,15 @@ module Skunk
12
12
module Cli
13
13
# Knows how to execute command line commands
14
14
class Application < RubyCritic ::Cli ::Application
15
+ COVERAGE_FILE = "coverage/.resultset.json"
16
+
15
17
def initialize ( argv )
16
18
@options = Skunk ::Cli ::Options . new ( argv )
17
19
end
18
20
19
21
def execute
22
+ warn_coverage_info unless File . exist? ( COVERAGE_FILE )
23
+
20
24
parsed_options = @options . parse . to_h
21
25
reporter = Skunk ::Cli ::CommandFactory . create ( parsed_options ) . execute
22
26
print ( reporter . status_message )
@@ -25,6 +29,13 @@ def execute
25
29
warn "Error: #{ error } "
26
30
STATUS_ERROR
27
31
end
32
+
33
+ private
34
+
35
+ def warn_coverage_info
36
+ warn "warning: Couldn't find coverage info at #{ COVERAGE_FILE } ."
37
+ warn "warning: Having no coverage metrics will make your SkunkScore worse."
38
+ end
28
39
end
29
40
end
30
41
end
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ Gem::Specification.new do |spec|
41
41
spec . add_dependency "rubycritic" , ">= 4.4" , "< 5.0"
42
42
spec . add_dependency "terminal-table" , "~> 1.8.0"
43
43
44
- spec . add_development_dependency "bundler" , "~> 2.0"
45
44
spec . add_development_dependency "byebug" , "~> 11"
46
45
spec . add_development_dependency "codecov" , "~> 0.1.16"
47
46
spec . add_development_dependency "minitest" , "~> 5.8.4"
You can’t perform that action at this time.
0 commit comments