File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
misc/scripts/models-as-data Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -173,30 +173,21 @@ def makeContent(self):
173
173
else :
174
174
neutralAddsTo = ""
175
175
176
- return f"""
177
- # THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
178
- # Definitions of taint steps in the { self .friendlyname } framework.
179
-
176
+ return f"""# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
177
+ # Definitions of models for the { self .friendlyname } framework.
180
178
extensions:
181
- { sinkAddsTo }
182
- { sourceAddsTo }
183
- { summaryAddsTo }
184
- { neutralAddsTo }
185
- """
179
+ { sinkAddsTo } { sourceAddsTo } { summaryAddsTo } { neutralAddsTo } """
186
180
187
181
def makeTypeBasedContent (self ):
188
182
if self .generateTypeBasedSummaries :
189
183
typeBasedSummaryAddsTo = self .getAddsTo ("CaptureTypeBasedSummaryModels.ql" , "extSummaryModel" )
190
184
else :
191
185
typeBasedSummaryAddsTo = ""
192
186
193
- return f"""
194
- # THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
187
+ return f"""# THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
195
188
# Definitions of type based summaries in the { self .friendlyname } framework.
196
-
197
189
extensions:
198
- { typeBasedSummaryAddsTo }
199
- """
190
+ { typeBasedSummaryAddsTo } """
200
191
201
192
def save (self , content , target ):
202
193
with open (target , "w" ) as targetYml :
You can’t perform that action at this time.
0 commit comments