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
91820040
Commit
91820040
authored
Feb 14, 2015
by
Samuel E. Giddins
Committed by
Marius Rackwitz
Apr 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RuboCop] Refactor validator checking of file patterns
parent
9787122b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
validator.rb
lib/cocoapods/validator.rb
+14
-7
No files found.
lib/cocoapods/validator.rb
View file @
91820040
...
@@ -399,13 +399,8 @@ module Pod
...
@@ -399,13 +399,8 @@ module Pod
end
end
if
consumer
.
spec
.
root?
if
consumer
.
spec
.
root?
unless
file_accessor
.
license
||
spec
.
license
&&
(
spec
.
license
[
:type
]
==
'Public Domain'
||
spec
.
license
[
:text
])
_validate_license
warning
(
'license'
,
'Unable to find a license file'
)
_validate_module_map
end
if
spec
.
module_map
&&
!
file_accessor
.
module_map
.
exist?
error
(
'module_map'
,
"Unable to find the specified module map file."
)
end
end
end
end
end
...
@@ -417,6 +412,18 @@ module Pod
...
@@ -417,6 +412,18 @@ module Pod
_validate_header_files
(
:public_header_files
)
_validate_header_files
(
:public_header_files
)
end
end
def
_validate_license
unless
file_accessor
.
license
||
spec
.
license
&&
(
spec
.
license
[
:type
]
==
'Public Domain'
||
spec
.
license
[
:text
])
warning
(
'license'
,
'Unable to find a license file'
)
end
end
def
_validate_module_map
if
spec
.
module_map
&&
!
file_accessor
.
module_map
.
exist?
error
(
'module_map'
,
'Unable to find the specified module map file.'
)
end
end
# Ensures that a list of header files only contains header files.
# Ensures that a list of header files only contains header files.
#
#
def
_validate_header_files
(
attr_name
)
def
_validate_header_files
(
attr_name
)
...
...
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