Standardize "DO NOT EDIT" comments in generated files.
PiperOrigin-RevId: 919718422 Change-Id: I2cba07d75d37d45f3f30b23d049c944b080248ad
This commit is contained in:
committed by
Copybara-Service
parent
8469198ba5
commit
ab0e0091d5
@@ -62,7 +62,12 @@ class BindingBuilder:
|
||||
self.content_cc = common.replace_lines_containing_marker(
|
||||
self.content_cc, marker, content
|
||||
)
|
||||
return "".join(self.content_cc)
|
||||
text = "".join(self.content_cc)
|
||||
return text.replace(
|
||||
"// limitations under the License.\n\n",
|
||||
"// limitations under the License.\n\n// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.\n\n",
|
||||
1,
|
||||
)
|
||||
|
||||
def build(self, generated_path_cc: str):
|
||||
common.write_to_file(generated_path_cc, self.to_string())
|
||||
|
||||
Reference in New Issue
Block a user