Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion easybuild/framework/easyconfig/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _eb_check_trailing_whitespace(physical_line, lines, line_number, checker_sta

# if the warning is about the multiline string of description
# we will not issue a warning
if checker_state.get('eb_last_key') == 'description':
if checker_state.get('eb_last_key') in ['description', 'examples', 'citing']:
result = None

return result
Expand Down
12 changes: 12 additions & 0 deletions test/framework/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def test_check_trailing_whitespace(self):
'''description = """start of long description, ''', # trailing whitespace, but allowed in description
''' continuation of long description ''', # trailing whitespace, but allowed in continued description
''' end of long description"""''',
'''citing = """start of long citing text, ''', # trailing whitespace, but allowed in citing
''' continuation of long citing text ''', # trailing whitespace, but allowed in continued citing
''' end of long citing text"""''',
'''examples = """start of long examples, ''', # trailing whitespace, but allowed in examples
''' continuation of long examples ''', # trailing whitespace, but allowed in continued examples
''' end of long examples"""''',
"moduleclass = 'tools' ", # trailing whitespace
'',
]
Expand All @@ -89,6 +95,12 @@ def test_check_trailing_whitespace(self):
None,
None,
None,
None,
None,
None,
None,
None,
None,
(21, "W299 trailing whitespace"),
]

Expand Down
Loading