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
449c64f5
Commit
449c64f5
authored
Jul 04, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Linter] Improved detection of xcodebuild errors.
parent
63c5e456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec.rb
lib/cocoapods/command/spec.rb
+4
-4
No files found.
lib/cocoapods/command/spec.rb
View file @
449c64f5
...
...
@@ -237,7 +237,7 @@ module Pod
install_pod
puts
"Building with xcodebuild.
\n
"
.
yellow
if
config
.
verbose?
# treat xcodebuild warnings as notes because the spec maintainer might not be the author of the library
xcodebuild_output
.
each
{
|
msg
|
(
msg
.
include?
(
'error'
)
?
@platform_errors
[
@platform
]
:
@platform_notes
[
@platform
]
)
<<
msg
}
xcodebuild_output
.
each
{
|
msg
|
(
msg
.
include?
(
'error
:
'
)
?
@platform_errors
[
@platform
]
:
@platform_notes
[
@platform
]
)
<<
msg
}
@platform_errors
[
@platform
]
+=
file_patterns_errors
@platform_warnings
[
@platform
]
+=
file_patterns_warnings
tear_down_lint_environment
...
...
@@ -399,9 +399,9 @@ module Pod
def
process_xcode_build_output
(
output
)
output_by_line
=
output
.
split
(
"
\n
"
)
selected_lines
=
output_by_line
.
select
do
|
l
|
l
.
include?
(
'error:'
)
&&
(
l
!~
/errors? generated\./
)
\
||
l
.
include?
(
'warning:'
)
&&
(
l
!~
/warnings? generated\./
)\
||
l
.
include?
(
'note:'
)
&&
(
l
!~
/expanded from macro/
)
l
.
include?
(
'error:
'
)
&&
(
l
!~
/errors? generated\./
)
\
||
l
.
include?
(
'warning:
'
)
&&
(
l
!~
/warnings? generated\./
)\
||
l
.
include?
(
'note:
'
)
&&
(
l
!~
/expanded from macro/
)
end
selected_lines
.
map
do
|
l
|
new
=
l
.
gsub
(
/\/tmp\/CocoaPods\/Lint\/Pods\//
,
''
)
# Remove the unnecessary tmp path
...
...
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