Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -785,7 +785,8 @@ def detect_bad_smells(tgrl_file, selected_bad_smells, size_threshold, similarity
|
|
785 |
if 'Punctuation-marked element' in selected_bad_smells:
|
786 |
result = get_punctuations(all_elements)
|
787 |
if result != "":
|
788 |
-
|
|
|
789 |
|
790 |
if 'Incorrect actor syntax' in selected_bad_smells:
|
791 |
result = check_actor_syntax(all_elements['actors'])
|
|
|
785 |
if 'Punctuation-marked element' in selected_bad_smells:
|
786 |
result = get_punctuations(all_elements)
|
787 |
if result != "":
|
788 |
+
warning = "WARNING: Avoid using punctuation to imply priority or urgency. The use of punctuation can lead to misinterpretation and inefficiencies in communicating the goals/requirements.\n\n"
|
789 |
+
output = warning + output + result + "\n\n"
|
790 |
|
791 |
if 'Incorrect actor syntax' in selected_bad_smells:
|
792 |
result = check_actor_syntax(all_elements['actors'])
|