cozy/ui/main_view.py

Summary

Maintainability
C
1 day
Test Coverage

Try, Except, Pass detected.
Open

        except:
Severity: Info
Found in cozy/ui/main_view.py by bandit

CozyUI has 31 functions (exceeds 20 allowed). Consider refactoring.
Open

class CozyUI(EventSender, metaclass=Singleton):
    """
    CozyUI is the main ui class.
    """
    # Is currently an dialog open?
Severity: Minor
Found in cozy/ui/main_view.py - About 3 hrs to fix

    File main_view.py has 320 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import logging
    import os
    import webbrowser
    from threading import Thread
    
    
    Severity: Minor
    Found in cozy/ui/main_view.py - About 3 hrs to fix

      Function __init_actions has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def __init_actions(self):
              """
              Init all app actions.
              """
              self.accel = Gtk.AccelGroup()
      Severity: Minor
      Found in cozy/ui/main_view.py - About 1 hr to fix

        Function __on_drag_data_received has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __on_drag_data_received(self, widget, context, x, y, selection, target_type, timestamp):
        Severity: Major
        Found in cozy/ui/main_view.py - About 50 mins to fix

          There are no issues that match your filters.

          Category
          Status