Skip to content

Commit c74f723

Browse files
committed
complete error message in test resource file
1 parent d29f314 commit c74f723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/it/test-projects/creedengo-python-plugin-test-project/src/avoidGlobalVariableInFunction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def print_global_var_details():
2525
assert len(global_var) > 0, 'Failed' # Noncompliant {{Use local variable (function/class scope) instead of global variable (application scope)}}
2626
assert len('test') > 0, 'Failed : ' + global_var # Noncompliant {{Use local variable (function/class scope) instead of global variable (application scope)}}
2727
test = ''
28-
test += global_var # Noncompliant
28+
test += global_var # Noncompliant {{Use local variable (function/class scope) instead of global variable (application scope)}}
2929
test = {'test': global_var, 'global_var': 1 } # Noncompliant {{Use local variable (function/class scope) instead of global variable (application scope)}}
3030

3131
# Compliant

0 commit comments

Comments
 (0)