Merge branch 'CURA-10903-warn-for-deleted-files' into yttr

This commit is contained in:
Saumya Jain 2024-04-09 11:37:58 +02:00 committed by GitHub
commit a0b9cce569
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class Definition(Linter):
yield Diagnostic(
file=self._file,
diagnostic_name="diagnostic-definition-redundant-override",
diagnostic_name="diagnostic-material-temperature-defined",
message=f"Overriding {key} as it belongs to material temperature catagory and shouldn't be placed in machine definitions",
level="Warning",
offset=found.span(0)[0],

View File

@ -52,7 +52,7 @@ def main() -> None:
if args.deleted:
for file in args.Files:
deletedFiles = diagnoseIssuesWithFile(file, settings )
comments_check["GitComment"].extend([d.toDict() for d in deletedFiles])
comments_check["Git Comment"].extend([d.toDict() for d in deletedFiles])
results = yaml.dump(comments_check, default_flow_style=False, indent=4, width=240)