diff --git a/easybuild/framework/easyconfig/style.py b/easybuild/framework/easyconfig/style.py index f7f4d33b40..f087dc8205 100644 --- a/easybuild/framework/easyconfig/style.py +++ b/easybuild/framework/easyconfig/style.py @@ -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 diff --git a/test/framework/style.py b/test/framework/style.py index ce5ce1d317..2a8ebeb1e2 100644 --- a/test/framework/style.py +++ b/test/framework/style.py @@ -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 '', ] @@ -89,6 +95,12 @@ def test_check_trailing_whitespace(self): None, None, None, + None, + None, + None, + None, + None, + None, (21, "W299 trailing whitespace"), ]