Commit 399e6bee authored by Fabio Pelosin's avatar Fabio Pelosin

[Validator] Show the version of the linted specification.

Closes #847
parent 81df9666
...@@ -62,23 +62,20 @@ module Pod ...@@ -62,23 +62,20 @@ module Pod
end end
perform_linting perform_linting
check_repo_path if spec && repo_path
# begin perform_extensive_analysis if spec && !quick
if spec
check_repo_path if repo_path
perform_extensive_analysis unless quick
end
# rescue Exception => e
# error "The specification is malformed and crashed the linter."
# end
unless disable_ui_output unless disable_ui_output
UI.puts " -> ".send(result_color) << (spec ? spec.name : file.basename.to_s) UI.puts " -> ".send(result_color) << (spec ? spec.to_s : file.basename.to_s)
print_results print_results
end end
validated? validated?
end end
# Prints the result of the validation to the user.
#
# @return [void]
#
def print_results def print_results
results.each do |result| results.each do |result|
if result.platforms == [:ios] if result.platforms == [:ios]
...@@ -87,7 +84,7 @@ module Pod ...@@ -87,7 +84,7 @@ module Pod
platform_message = "[OSX] " platform_message = "[OSX] "
end end
case result.type case result.type
when :error then type = "ERROR" when :error then type = "ERROR"
when :warning then type = "WARN" when :warning then type = "WARN"
when :note then type = "NOTE" when :note then type = "NOTE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment