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
919c0acc
Commit
919c0acc
authored
May 25, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Linter] Demoted post_install hook message to note.
parent
ca8ff183
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
spec.rb
lib/cocoapods/command/spec.rb
+9
-1
No files found.
lib/cocoapods/command/spec.rb
View file @
919c0acc
...
@@ -185,6 +185,7 @@ module Pod
...
@@ -185,6 +185,7 @@ module Pod
@platform_notes
[
platform
]
<<
"
#{
platform
.
name
}
[!] Fatal errors found skipping the rest of the validation"
@platform_notes
[
platform
]
<<
"
#{
platform
.
name
}
[!] Fatal errors found skipping the rest of the validation"
else
else
@platform_warnings
[
platform
]
+=
podspec_warnings
+
deprecation_warnings
@platform_warnings
[
platform
]
+=
podspec_warnings
+
deprecation_warnings
@platform_notes
[
platform
]
+=
podspec_notes
peform_extensive_analysis
unless
quick
peform_extensive_analysis
unless
quick
end
end
end
end
...
@@ -336,6 +337,14 @@ module Pod
...
@@ -336,6 +337,14 @@ module Pod
@spec
.
source
&&
@spec
.
source
[
:git
]
=~
/github.com/
@spec
.
source
&&
@spec
.
source
[
:git
]
=~
/github.com/
end
end
# @return [Array<String>] List of the comments detected in the podspec
def
podspec_notes
text
=
@file
.
read
deprecations
=
[]
deprecations
<<
"The `post_install' hook is reserved for edge cases"
if
text
.
=
~
/post_install/
deprecations
end
# It reads a podspec file and checks for strings corresponding
# It reads a podspec file and checks for strings corresponding
# to features that are or will be deprecated
# to features that are or will be deprecated
#
#
...
@@ -346,7 +355,6 @@ module Pod
...
@@ -346,7 +355,6 @@ module Pod
deprecations
=
[]
deprecations
=
[]
deprecations
<<
"`config.ios?' and `config.osx?' are deprecated"
if
text
.
=
~
/config\..?os.?/
deprecations
<<
"`config.ios?' and `config.osx?' are deprecated"
if
text
.
=
~
/config\..?os.?/
deprecations
<<
"clean_paths are deprecated and ignored (use preserve_paths)"
if
text
.
=
~
/clean_paths/
deprecations
<<
"clean_paths are deprecated and ignored (use preserve_paths)"
if
text
.
=
~
/clean_paths/
deprecations
<<
"The `post_install' hook is reserved for edge cases"
if
text
.
=
~
/post_install/
deprecations
deprecations
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