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
647cebae
Commit
647cebae
authored
Apr 23, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Pod::Command::Spec] --only-error option
parent
68ed7a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
spec.rb
lib/cocoapods/command/spec.rb
+10
-2
No files found.
lib/cocoapods/command/spec.rb
View file @
647cebae
...
...
@@ -20,11 +20,14 @@ module Pod
def
self
.
options
[[
"--no-install"
,
"Skips checks that would require to donwload the spec"
]].
concat
(
super
)
[
[
"--no-install"
,
"lint skips checks that would require to donwload the spec"
],
[
"--only-errors"
,
"lint validates even if warnings are present"
]
].
concat
(
super
)
end
def
initialize
(
argv
)
@no_install
=
argv
.
option
(
'--no-install'
)
@only_errors
=
argv
.
option
(
'--only-errors'
)
args
=
argv
.
arguments
unless
(
args
[
0
]
==
'create'
&&
(
2
..
3
).
member?
(
args
.
size
))
||
(
args
[
0
]
==
'lint'
&&
args
.
size
<=
2
)
...
...
@@ -107,7 +110,12 @@ module Pod
all
=
warnings
+
deprecations
+
build_messages
+
file_errors
errors
=
file_errors
+
build_errors
warnings
=
all
-
errors
all_valid
=
false
unless
all
.
empty?
if
@only_errors
all_valid
=
false
unless
errors
.
empty?
else
all_valid
=
false
unless
(
all
-
build_warnings
).
empty?
end
# Clean duplicated multiplatform messages
[
errors
,
warnings
].
each
do
|
messages
|
...
...
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