Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
399e6bee
Commit
399e6bee
authored
Mar 12, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Validator] Show the version of the linted specification.
Closes #847
parent
81df9666
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
validator.rb
lib/cocoapods/validator.rb
+8
-11
No files found.
lib/cocoapods/validator.rb
View file @
399e6bee
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment