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
37fb2dfc
Commit
37fb2dfc
authored
Jun 17, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kommen-analyzer-disable-all-checks'
parents
67d5c590
5cb19922
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
CHANGELOG.md
CHANGELOG.md
+5
-0
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+1
-1
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+2
-2
No files found.
CHANGELOG.md
View file @
37fb2dfc
...
@@ -46,6 +46,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -46,6 +46,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#2160
](
https://github.com/CocoaPods/CocoaPods/issues/2160
)
[
#2160
](
https://github.com/CocoaPods/CocoaPods/issues/2160
)
*
Use
`-analyzer-disable-all-checks`
to disable static analyzer for
pods with
`inhibit_warnings`
enabled (requires Xcode >= 6.1).
[
Dieter Komendera
](
https://github.com/kommen
)
[
#2402
](
https://github.com/CocoaPods/CocoaPods/issues/2402
)
##### Bug Fixes
##### Bug Fixes
*
Added recursive support to the public headers of vendored frameworks
*
Added recursive support to the public headers of vendored frameworks
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
37fb2dfc
...
@@ -235,7 +235,7 @@ module Pod
...
@@ -235,7 +235,7 @@ module Pod
end
end
end
end
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
if
target_definition
.
inhibits_warnings_for_pod?
(
consumer
.
spec
.
root
.
name
)
flags
<<
'-w -Xanalyzer -analyzer-disable-
checker -Xanalyzer deadcode
'
flags
<<
'-w -Xanalyzer -analyzer-disable-
all-checks
'
end
end
flags
*
' '
flags
*
' '
end
end
...
...
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
37fb2dfc
...
@@ -208,12 +208,12 @@ module Pod
...
@@ -208,12 +208,12 @@ module Pod
@installer
.
target
.
target_definition
.
stubs
(
:inhibits_warnings_for_pod?
).
returns
(
true
)
@installer
.
target
.
target_definition
.
stubs
(
:inhibits_warnings_for_pod?
).
returns
(
true
)
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
),
true
)
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
),
true
)
flags
.
should
.
include?
(
'-Xanalyzer -analyzer-disable-
checker
'
)
flags
.
should
.
include?
(
'-Xanalyzer -analyzer-disable-
all-checks
'
)
end
end
it
"doesn't inhibit analyzer warnings by default"
do
it
"doesn't inhibit analyzer warnings by default"
do
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
),
true
)
flags
=
@installer
.
send
(
:compiler_flags_for_consumer
,
@spec
.
consumer
(
:ios
),
true
)
flags
.
should
.
not
.
include?
(
'-Xanalyzer -analyzer-disable-
checker
'
)
flags
.
should
.
not
.
include?
(
'-Xanalyzer -analyzer-disable-
all-checks
'
)
end
end
describe
'concerning ARC before and after iOS 6.0 and OS X 10.8'
do
describe
'concerning ARC before and after iOS 6.0 and OS X 10.8'
do
...
...
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