Commit 2713c61d authored by Fabio Pelosin's avatar Fabio Pelosin

[Linter] Removed message post install hook note.

The post install hook is not so rare and there is no need for
this message anymore.

Full message: The `post_install' hook is reserved for edge cases`
parent bc801345
...@@ -205,7 +205,6 @@ module Pod ...@@ -205,7 +205,6 @@ 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
...@@ -360,14 +359,6 @@ module Pod ...@@ -360,14 +359,6 @@ 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
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment