C#: Move autogenerated comment to file level instead of having it on each class.

This commit is contained in:
Michael Nebel
2022-04-28 11:11:21 +02:00
parent 52b59d0eed
commit c606121ae7

View File

@@ -133,9 +133,6 @@ Requirements: `codeql` should both appear on your path.
def asCsvModel(self, superclass, kind, rows):
classTemplate = """
/**
* THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
*/
private class {0}{1}Csv extends {2} {{
override predicate row(string row) {{
row =
@@ -170,7 +167,10 @@ private class {0}{1}Csv extends {2} {{
sourceCsv = ""
return f"""
/** Definitions of taint steps in the {self.shortname} framework */
/**
* THIS FILE IS AN AUTO-GENERATED MODELS AS DATA FILE. DO NOT EDIT.
* Definitions of taint steps in the {self.shortname} framework.
*/
import {self.language}
private import semmle.code.{self.language}.dataflow.ExternalFlow