BLKSerene/Wordless

View on GitHub
wordless/wl_main.py

Summary

Maintainability
B
4 hrs
Test Coverage

Wl_Main has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

class Wl_Main(QMainWindow):
    def __init__(self, loading_window):
        super().__init__()

        self.loading_window = loading_window
Severity: Minor
Found in wordless/wl_main.py - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                            for file in glob.glob(os.path.join(
                                self.settings_custom['general']['imp']['temp_files']['default_path'], '*.*'
                            )):
                                os.remove(file)
    
    
    Severity: Major
    Found in wordless/wl_main.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              with open(file_settings_display_lang, 'wb') as f:
                                  pickle.dump(action.lang, f)
      
                              # Remove settings file
                              if os.path.exists(file_settings):
      Severity: Major
      Found in wordless/wl_main.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if os.path.exists(file_settings):
                                    os.remove(file_settings)
        
                                # Remove file caches
                                for file in glob.glob(os.path.join(
        Severity: Major
        Found in wordless/wl_main.py - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status