parazeeknova / nyxtext

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
3 months ago3 months old
CTkScrollableDropdownFrame.__init__ has a cyclomatic complexity of 25 with "high" risk
 11
 12class CTkScrollableDropdownFrame(customtkinter.CTkFrame):
 13
 14    def __init__( 15        self,
 16        attach,
 17        x=None,
CTkScrollableDropdown.__init__ has a cyclomatic complexity of 26 with "very-high" risk
 12
 13class CTkScrollableDropdown(customtkinter.CTkToplevel):
 14
 15    def __init__( 16        self,
 17        attach,
 18        x=None,
CTkScrollableDropdownFrame.configure has a cyclomatic complexity of 16 with "high" risk
365        self.hide = True
366        self._iconify()
367
368    def configure(self, **kwargs):369        if "height" in kwargs:
370            self.height = kwargs.pop("height")
371            self.height_new = self.height
CTkScrollableDropdown.configure has a cyclomatic complexity of 17 with "high" risk
421    def hide(self):
422        self._withdraw()
423
424    def configure(self, **kwargs):425        if "height" in kwargs:
426            self.height = kwargs.pop("height")
427            self.height_new = self.height