Skip to content

Commit

Permalink
Pod names should not being with a period -- should fix CocoaPods#98
Browse files Browse the repository at this point in the history
  • Loading branch information
dustywusty committed Apr 7, 2014
1 parent eba0e06 commit cc915aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cocoapods-core/specification/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ def _validate_name(n)
if spec.root.name =~ /\s/
error 'The name of a spec should not contain whitespace.'
end

if spec.root.name[0, 1] == '.'
error 'The name of a spec should not being with a period.'
end
end
end

Expand Down

0 comments on commit cc915aa

Please sign in to comment.