Skip to content

Commit

Permalink
add verbose_name is issue genarator
Browse files Browse the repository at this point in the history
  • Loading branch information
srijan-deepsource committed Nov 14, 2023
1 parent d5649a9 commit 218a217
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions analyzers/kube-linter/utils/issue_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 218a217

Please sign in to comment.