NabDev/NabBot

View on GitHub
cogs/utils/__init__.py

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

        if a < 125 or (r < 15 and g < 15 and b < 15) or (r > 254 and g > 254 and b > 254):
            continue
        return r, g, b
Severity: Major
Found in cogs/utils/__init__.py - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return "moments"
    Severity: Major
    Found in cogs/utils/__init__.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return "{0} minutes".format(minutes)
      Severity: Major
      Found in cogs/utils/__init__.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return "1 hour"
        Severity: Major
        Found in cogs/utils/__init__.py - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status