krassowski/Anki-Night-Mode

View on GitHub
night_mode/stylers.py

Summary

Maintainability
C
1 day
Test Coverage

File stylers.py has 632 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from PyQt5.QtCore import Qt
from PyQt5 import QtWidgets

import aqt
from anki.stats import CollectionStats
Severity: Major
Found in night_mode/stylers.py - About 1 day to fix

    Function _addButton has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _addButton(self, editor, icon, command, *args, **kwargs):
    Severity: Minor
    Found in night_mode/stylers.py - About 35 mins to fix

      Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def init(self, editor, mw, widget, parentWindow, addMode=False):
      Severity: Minor
      Found in night_mode/stylers.py - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status