mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 08:45:12 +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]:
|
||||
|
||||
data = self._isNameSizeBIggerThanThreshhold()
|
||||
""" Check if there is a dot in the directory name, MacOS has trouble signing and notarizing otherwise """
|
||||
""" check the name of profile and where it is found"""
|
||||
name_of_profile, found = self._getprofileName()
|
||||
if len(name_of_profile) > Profile.MAX_SIZE_OF_NAME:
|
||||
yield Diagnostic(
|
||||
|
Loading…
x
Reference in New Issue
Block a user