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
0d7f8c35
Commit
0d7f8c35
authored
Jul 11, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Linter] Accept specs that only specify preserve_paths.
parent
5bffd10b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec.rb
lib/cocoapods/command/spec.rb
+1
-1
No files found.
lib/cocoapods/command/spec.rb
View file @
0d7f8c35
...
@@ -301,7 +301,7 @@ module Pod
...
@@ -301,7 +301,7 @@ module Pod
# attributes with multiplatform values
# attributes with multiplatform values
return
messages
unless
platform_valid?
return
messages
unless
platform_valid?
messages
<<
"
Missing source_files"
if
spec
.
source_files
.
empty?
&&
spec
.
subspecs
.
empty?
&&
spec
.
resource
s
.
empty?
messages
<<
"
The spec appears to be empty (no source files, resources, or preserve paths)"
if
spec
.
source_files
.
empty?
&&
spec
.
subspecs
.
empty?
&&
spec
.
resources
.
empty?
&&
spec
.
preserve_path
s
.
empty?
messages
+=
paths_starting_with_a_slash_errors
messages
+=
paths_starting_with_a_slash_errors
messages
messages
end
end
...
...
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