From 218a217b8bb6060a6a974bc49e414be8af6e318c Mon Sep 17 00:00:00 2001 From: Srijan Saurav Date: Tue, 14 Nov 2023 17:11:04 +0530 Subject: [PATCH] add verbose_name is issue genarator --- analyzers/kube-linter/utils/issue_gen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analyzers/kube-linter/utils/issue_gen.py b/analyzers/kube-linter/utils/issue_gen.py index 320b9d11..dfeb8e98 100644 --- a/analyzers/kube-linter/utils/issue_gen.py +++ b/analyzers/kube-linter/utils/issue_gen.py @@ -4,10 +4,11 @@ from issue_map_gen import generate_mapping, get_issue_map, get_issues_json -def get_toml_content(title, description, remediation) -> str: +def get_toml_content(title, verbose_name, description, remediation) -> str: """Return the content of the toml file.""" content = f''' title = "{title}" + verbose_name = "{verbose_name}" severity = "major" category = "antipattern" weight = 70 @@ -44,7 +45,7 @@ def update_issue_tomls() -> None: description = issue["description"] remediation = issue["remediation"] - content = get_toml_content(issue_name, description, remediation) + content = get_toml_content(issue_name, issue_name, description, remediation) with open(filepath, "w") as f: f.write(content)