mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 06:05:53 +08:00
Update documentation on diagnostic to be less specifically about strings. Since diagnostics can be related to other issues.
This commit is contained in:
parent
d19f1f3e42
commit
0b2e409929
@ -10,7 +10,7 @@ class Diagnostic:
|
||||
|
||||
@param file: The path to the file this diagnostic is for.
|
||||
@param diagnostic_name: The name of the diagnostic rule that spawned this result. A list can be found in .printer-linter.
|
||||
@param message: A message explaining the issue with this piece of text.
|
||||
@param message: A message explaining the issue with this file.
|
||||
@param level: How important this diagnostic is, ranges from Warning -> Error.
|
||||
@param offset: The offset in file where the issue is.
|
||||
@param replacements: A list of Replacement that contain replacement text.
|
||||
|
@ -7,7 +7,7 @@ from ..diagnostic import Diagnostic
|
||||
|
||||
class DiagnosticGenerator(ABC):
|
||||
def __init__(self, file: Path, settings: dict) -> None:
|
||||
""" Yields Diagnostics for file, these are suggested text replacements based on formatting rules in settings.
|
||||
""" Yields Diagnostics for file, these are issues with the file such as bad text format or too large file size.
|
||||
|
||||
@param file: A file to generate diagnostics for
|
||||
@param settings: A list of settings containing rules for creating diagnostics
|
||||
|
Loading…
x
Reference in New Issue
Block a user