mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java/C#: Improve the newlines in the generated model files.
This commit is contained in:
@@ -180,8 +180,7 @@ extensions:
|
||||
{sinkAddsTo}
|
||||
{sourceAddsTo}
|
||||
{summaryAddsTo}
|
||||
{negativeSummaryAddsTo}
|
||||
"""
|
||||
{negativeSummaryAddsTo}"""
|
||||
|
||||
def makeTypeBasedContent(self):
|
||||
if self.generateTypeBasedSummaries:
|
||||
@@ -189,13 +188,11 @@ extensions:
|
||||
else:
|
||||
typeBasedSummaryAddsTo = ""
|
||||
|
||||
return f"""
|
||||
# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
|
||||
return f"""# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
|
||||
# Definitions of type based summaries in the {self.friendlyname} framework.
|
||||
|
||||
extensions:
|
||||
{typeBasedSummaryAddsTo}
|
||||
"""
|
||||
{typeBasedSummaryAddsTo}"""
|
||||
|
||||
def save(self, content, target):
|
||||
with open(target, "w") as targetYml:
|
||||
|
||||
Reference in New Issue
Block a user