mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 07:15:10 +08:00
Refactor profile name check method in linter
CURA-11153
This commit is contained in:
parent
ceb5e7096e
commit
196a4cf0c0
@ -23,8 +23,7 @@ class Profile(Linter):
|
|||||||
|
|
||||||
def checklengthofProfileName(self) -> Iterator[Diagnostic]:
|
def checklengthofProfileName(self) -> Iterator[Diagnostic]:
|
||||||
|
|
||||||
data = self._isNameSizeBIggerThanThreshhold()
|
""" check the name of profile and where it is found"""
|
||||||
""" Check if there is a dot in the directory name, MacOS has trouble signing and notarizing otherwise """
|
|
||||||
name_of_profile, found = self._getprofileName()
|
name_of_profile, found = self._getprofileName()
|
||||||
if len(name_of_profile) > Profile.MAX_SIZE_OF_NAME:
|
if len(name_of_profile) > Profile.MAX_SIZE_OF_NAME:
|
||||||
yield Diagnostic(
|
yield Diagnostic(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user