Skip to content

Commit

Permalink
[Linter] Removed message post install hook note.
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
fabiopelosin committed Jul 23, 2012
1 parent bc80134 commit 2713c61
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/cocoapods/command/spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ def lint
@platform_notes[platform] << "#{platform.name} [!] Fatal errors found skipping the rest of the validation"
else
@platform_warnings[platform] += podspec_warnings + deprecation_warnings
@platform_notes[platform] += podspec_notes
peform_extensive_analysis unless quick
end
end
Expand Down Expand Up @@ -360,14 +359,6 @@ def github_source?
@spec.source && @spec.source[:git] =~ /github.com/
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
# to features that are or will be deprecated
#
Expand Down

0 comments on commit 2713c61

Please sign in to comment.