From 8cdb18596d443fe44d0f59dac8bb2f234cfd0d83 Mon Sep 17 00:00:00 2001 From: Christian Fischer Date: Mon, 13 Nov 2023 09:17:14 +0100 Subject: [PATCH] Change: Minor text update in script_xref_form plugin and test. --- tests/plugins/test_script_xref_form.py | 2 +- troubadix/plugins/script_xref_form.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/plugins/test_script_xref_form.py b/tests/plugins/test_script_xref_form.py index e3a40d57..93452f5a 100644 --- a/tests/plugins/test_script_xref_form.py +++ b/tests/plugins/test_script_xref_form.py @@ -62,7 +62,7 @@ def test_wrong_name(self): self.assertIsInstance(results[0], LinterError) self.assertEqual( 'script_xref(nammmme: "foo", value:"bar");: does not conform to' - ' script_xref(name:"", value:"");', + ' script_xref(name:"", value:);', results[0].message, ) diff --git a/troubadix/plugins/script_xref_form.py b/troubadix/plugins/script_xref_form.py index fac88325..e1bdcd52 100644 --- a/troubadix/plugins/script_xref_form.py +++ b/troubadix/plugins/script_xref_form.py @@ -46,7 +46,7 @@ def check_content( ): yield LinterError( f"{match.group(0)}: does not conform to" - ' script_xref(name:"", value:"");', + ' script_xref(name:"", value:);', file=nasl_file, plugin=self.name, )