Skip to content

Commit

Permalink
linting: SUMMARY is not allowed to end with a period.
Browse files Browse the repository at this point in the history
  • Loading branch information
waddlesplash committed Jul 2, 2015
1 parent 1924509 commit 97e0bc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HaikuPorter/Port.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ def _validateSUMMARY(self, key, entries, showWarnings):
if '\n' in entries[key]:
sysExit('%s must be a single line of text (%s).'
% (key, self.recipeFilePath))
if entries[key].endswith('.'):
sysExit('%s cannot end in "." (%s).'
% (key, self.recipeFilePath))
if len(entries[key]) > 70 and showWarnings:
warn('%s exceeds 70 chars (in %s)'
% (key, self.recipeFilePath))
Expand Down

0 comments on commit 97e0bc3

Please sign in to comment.