Skip to content

Commit 88959ea

Browse files
authored
Remove additional redundant remediation text (#622)
1 parent dec36c3 commit 88959ea

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/core_codemods/defectdojo/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ def from_core_codemod(
5353
return DefectDojoCodemod(
5454
metadata=Metadata(
5555
name=name,
56-
summary="DefectDojo: " + other.summary,
56+
summary=other.summary,
5757
review_guidance=other._metadata.review_guidance,
5858
references=(
5959
other.references + [Reference(url=rule_url, description=rule_name)]
6060
),
61-
description=f"This codemod acts upon the following DefectDojo rules: {rule_id}.\n\n"
62-
+ other.description,
61+
description=other.description,
6362
tool=ToolMetadata(
6463
name="DefectDojo",
6564
rules=[

src/core_codemods/sonar/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def from_core_codemod(
3333
references=(
3434
other.references + [Reference(url=rule_url, description=rule_name)]
3535
),
36-
description=f"This codemod acts upon the following Sonar rules: {rule_id}.\n\n"
37-
+ other.description,
36+
description=other.description,
3837
tool=ToolMetadata(
3938
name="Sonar",
4039
rules=[

0 commit comments

Comments
 (0)