Skip to content

Commit

Permalink
merge master -> dev-0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gothub committed Mar 12, 2020
2 parents 02ccfdf + 6d70035 commit 596d48e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/checks/dataset.keywords.overlap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def call():
# If keywords were found in the title fail
if(foundCount == 1):
output = "The keyword '{}' was found in the title".format(foundKeywords)
output = "The keyword '{}' was also found in the title.".format(foundKeywords)
status = "FAILURE"
return False
elif(foundCount > 1):
output = "The keywords '{}' were found in the title".format(foundKeywords)
output = "The keywords '{}' were also found in the title.".format(foundKeywords)
status = "FAILURE"
return False
Expand Down
8 changes: 4 additions & 4 deletions src/checks/dataset.title.length2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ def call():
titleWords = re.split("\s|,", title.strip().lower())
if (len(titleWords) < minLength):
output = "The title contains {} words, which is less than the required minimum of {}".format(len(titleWords), minLength)
output = "The title contains {} words, which is less than the required minimum of {}.".format(len(titleWords), minLength)
status = "FAILURE"
return False
if (len(titleWords) > maxLength):
output = "The title contains {} words, which is greater than the maximum of {}".format(len(titleWords), maxLength)
output = "The title contains {} words, which is greater than the maximum of {}.".format(len(titleWords), maxLength)
status = "FAILURE"
return False
if (len(titleWords) > warnLength):
output = "Warning: The title contains {} words, which is greater than the recommended maximum of {}".format(len(titleWords), warnLength)
output = "Warning: The title contains {} words, which is greater than the recommended maximum of {}.".format(len(titleWords), warnLength)
status = "SUCCESS"
return True
output = "The title contains {} words, which is sufficient (between {} and {} words)".format(len(titleWords), minLength, maxLength)
output = "The title contains {} words, which is sufficient (between {} and {} words).".format(len(titleWords), minLength, maxLength)
status = "SUCCESS"
return True
]]></code>
Expand Down

0 comments on commit 596d48e

Please sign in to comment.