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
06ad5a4a
Commit
06ad5a4a
authored
Mar 10, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Validator] Validate that header files are in source_files
parent
5d0c4c7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
validator.rb
lib/cocoapods/validator.rb
+7
-1
No files found.
lib/cocoapods/validator.rb
View file @
06ad5a4a
...
...
@@ -560,12 +560,18 @@ module Pod
# Ensures that a list of header files only contains header files.
#
def
_validate_header_files
(
attr_name
)
non_header_files
=
file_accessor
.
send
(
attr_name
).
header_files
=
file_accessor
.
send
(
attr_name
)
non_header_files
=
header_files
.
select
{
|
f
|
!
Sandbox
::
FileAccessor
::
HEADER_EXTENSIONS
.
include?
(
f
.
extname
)
}.
map
{
|
f
|
f
.
relative_path_from
(
file_accessor
.
root
)
}
unless
non_header_files
.
empty?
error
(
attr_name
,
"The pattern matches non-header files (
#{
non_header_files
.
join
(
', '
)
}
)."
)
end
non_source_files
=
header_files
-
file_accessor
.
source_files
unless
non_source_files
.
empty?
error
(
attr_name
,
'The pattern includes header files that are not listed'
\
"in source_files (
#{
non_source_files
.
join
(
', '
)
}
)."
)
end
end
def
_validate_header_mappings_dir
...
...
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