BLKSerene/Wordless

View on GitHub
wordless/wl_profiler.py

Summary

Maintainability
B
4 hrs
Test Coverage

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

    def __init__(
Severity: Major
Found in wordless/wl_profiler.py - About 50 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if lens.any():
                                    self.set_item_num(row, i, numpy.mean(lens))
                                    self.set_item_num(row + 1, i, numpy.std(lens))
                                    self.set_item_num(row + 2, i, numpy.var(lens))
                                    self.set_item_num(row + 3, i, numpy.min(lens))
    Severity: Major
    Found in wordless/wl_profiler.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  for j in range(11):
                                      self.set_item_err(row + j, i, text = self.tr('No language support'), alignment_hor = 'right')
      
      
      Severity: Major
      Found in wordless/wl_profiler.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    for j in range(10):
                                        self.set_item_num(row + j, i, 0)
        
        
        Severity: Major
        Found in wordless/wl_profiler.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      for j, count in enumerate(counts):
                                          self.set_item_num(
                                              row = self.model().rowCount() - 2,
                                              col = j,
                                              val = count
          Severity: Major
          Found in wordless/wl_profiler.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        for j, count in enumerate(counts):
                                            self.set_item_num(
                                                row = self.model().rowCount() - 2,
                                                col = j,
                                                val = count
            Severity: Major
            Found in wordless/wl_profiler.py - About 45 mins to fix

              There are no issues that match your filters.

              Category
              Status