mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Extend list of formula names in linter
The list of formula names in the printer-linter's formula linter has been expanded. New entries include various mathematical functions (e.g., "max", "min", "sqrt"), string manipulation functions ("lower", "upper", "startswith"), and cryptographic/hash functions ("hashlib", "md5").
This commit is contained in:
parent
37c177fe04
commit
1f2e690809
1 changed files with 44 additions and 2 deletions
|
@ -11,8 +11,50 @@ from ..replacement import Replacement
|
|||
from .linter import Linter
|
||||
|
||||
FORMULA_NAMES = [
|
||||
"extruderValue", "extruderValues", "anyExtruderWithMaterial", "anyExtruderNrWithOrDefault",
|
||||
"resolveOrValue", "defaultExtruderPosition", "valueFromContainer", "extruderValueFromContainer"
|
||||
"extruderValue",
|
||||
"extruderValues",
|
||||
"anyExtruderWithMaterial",
|
||||
"anyExtruderNrWithOrDefault",
|
||||
"resolveOrValue",
|
||||
"defaultExtruderPosition",
|
||||
"valueFromContainer",
|
||||
"extruderValueFromContainer",
|
||||
"math",
|
||||
"round",
|
||||
"max",
|
||||
"ceil",
|
||||
"min",
|
||||
"sqrt",
|
||||
"log",
|
||||
"tan",
|
||||
"cos",
|
||||
"sin",
|
||||
"atan",
|
||||
"acos",
|
||||
"asin",
|
||||
"pi",
|
||||
"floor",
|
||||
"debug",
|
||||
"sum",
|
||||
"len",
|
||||
"uuid",
|
||||
"hashlib",
|
||||
"base64",
|
||||
"uuid3",
|
||||
"NAMESPACE_DNS",
|
||||
"decode",
|
||||
"encode",
|
||||
"b64encode",
|
||||
"digest",
|
||||
"md5",
|
||||
"radians",
|
||||
"degrees",
|
||||
"lower",
|
||||
"upper",
|
||||
"startswith",
|
||||
"endswith",
|
||||
"capitalize",
|
||||
"index"
|
||||
]
|
||||
|
||||
DELIMITERS = [r'\+', '-', '=', '/', '\*', r'\(', r'\)', r'\[', r'\]', '{', '}', ' ', '^']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue