Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Linter] Improved detection of stray comments.

  • Loading branch information...
commit f2cfa5f8ec65a39d65289cf94f9c80b1edcd8b57 1 parent c0e7d6f
@fabiopelosin fabiopelosin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cocoapods/command/spec.rb
View
2  lib/cocoapods/command/spec.rb
@@ -352,7 +352,7 @@ def podspec_warnings
messages << "Git sources should specify either a tag or a commit" if source[:git] && !source[:commit] && !source[:tag]
messages << "Github repositories should end in `.git'" if github_source? && source[:git] !~ /.*\.git/
messages << "Github repositories should use `https' link" if github_source? && source[:git] !~ /https:\/\/github.com/
- messages << "Comments must be deleted" if text =~ /^\w*#\n\w*#/ # allow a single line comment as it is generally used in subspecs
+ messages << "Comments must be deleted" if text.scan(/^\s*#/).length > 24
messages
end
Please sign in to comment.
Something went wrong with that request. Please try again.