mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Update readme with instruction for developing.
Change DiagnosticGenerator -> Linter since this is much easier to understand.
This commit is contained in:
parent
8e027c4af9
commit
e83ed933e2
10 changed files with 39 additions and 19 deletions
|
@ -65,13 +65,12 @@ def main() -> None:
|
|||
|
||||
def diagnoseIssuesWithFile(file: Path, settings: dict) -> List[Diagnostic]:
|
||||
""" For file, runs all diagnostic checks in settings and returns a list of diagnostics """
|
||||
# Find correct diagnostic generator for file
|
||||
diagnostic_generator = factory.create(file, settings)
|
||||
linter = factory.getLinter(file, settings)
|
||||
|
||||
if not diagnostic_generator:
|
||||
if not linter:
|
||||
return []
|
||||
|
||||
return list(filter(lambda d: d is not None, diagnostic_generator.check()))
|
||||
return list(filter(lambda d: d is not None, linter.check()))
|
||||
|
||||
|
||||
def applyFixesToFile(file, settings, full_body_check) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue