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
e42c614b
Commit
e42c614b
authored
Jul 04, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Linter] Check if the license text is assigned to the license type.
parent
b00b6e2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
spec.rb
lib/cocoapods/command/spec.rb
+1
-0
No files found.
lib/cocoapods/command/spec.rb
View file @
e42c614b
...
@@ -344,6 +344,7 @@ module Pod
...
@@ -344,6 +344,7 @@ module Pod
messages
=
[]
messages
=
[]
messages
<<
"Missing license type"
unless
license
[
:type
]
messages
<<
"Missing license type"
unless
license
[
:type
]
messages
<<
"Sample license type"
if
license
[
:type
]
&&
license
[
:type
]
=~
/\(example\)/
messages
<<
"Sample license type"
if
license
[
:type
]
&&
license
[
:type
]
=~
/\(example\)/
messages
<<
"Invalid license type"
if
license
[
:type
]
&&
license
[
:type
]
=~
/\n/
messages
<<
"The summary is not meaningful"
if
spec
.
summary
=~
/A short description of/
messages
<<
"The summary is not meaningful"
if
spec
.
summary
=~
/A short description of/
messages
<<
"The description is not meaningful"
if
spec
.
description
&&
spec
.
description
=~
/An optional longer description of/
messages
<<
"The description is not meaningful"
if
spec
.
description
&&
spec
.
description
=~
/An optional longer description of/
messages
<<
"The summary should end with a dot"
if
@spec
.
summary
!~
/.*\./
messages
<<
"The summary should end with a dot"
if
@spec
.
summary
!~
/.*\./
...
...
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