rake_check 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rake_check/tasks/check.rake +11 -10
- data/lib/rake_check/version.rb +1 -1
- metadata +4 -4
@@ -9,6 +9,7 @@ require 'rake_check/brakeman_checker'
|
|
9
9
|
require 'rake_check/coffee_lint_checker'
|
10
10
|
require 'rake_check/konacha_checker'
|
11
11
|
require 'benchmark'
|
12
|
+
|
12
13
|
##
|
13
14
|
# Do exakt what it is called
|
14
15
|
#
|
@@ -48,7 +49,7 @@ def print_summary(results)
|
|
48
49
|
end
|
49
50
|
puts `echo "#{result.join("\n")}" | column -t -s§`
|
50
51
|
end
|
51
|
-
def
|
52
|
+
def execute_checker(klass, argument=nil)
|
52
53
|
@index += 1
|
53
54
|
name = klass.to_s.gsub("Checker", '')
|
54
55
|
name = [name, argument].compact.join(' ')
|
@@ -68,16 +69,16 @@ desc "Check all Metric tools"
|
|
68
69
|
task :check do
|
69
70
|
@results = []
|
70
71
|
@index = 0
|
71
|
-
|
72
|
+
execute_checker CucumberChecker
|
72
73
|
Dir["spec*"].each do |spec_dir|
|
73
|
-
|
74
|
+
execute_checker RspecChecker, spec_dir
|
74
75
|
end
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
execute_checker RbpChecker
|
77
|
+
execute_checker YardChecker
|
78
|
+
execute_checker ReekChecker
|
79
|
+
execute_checker CaneChecker
|
80
|
+
execute_checker BrakemanChecker
|
81
|
+
execute_checker CoffeeLintChecker
|
82
|
+
execute_checker KonachaChecker
|
82
83
|
print_check_result @results
|
83
84
|
end
|
data/lib/rake_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
segments:
|
182
182
|
- 0
|
183
|
-
hash:
|
183
|
+
hash: 3012949434208424115
|
184
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
186
186
|
requirements:
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
segments:
|
191
191
|
- 0
|
192
|
-
hash:
|
192
|
+
hash: 3012949434208424115
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
195
|
rubygems_version: 1.8.24
|