inasafe/inasafe

View on GitHub
safe/impact_function/style.py

Summary

Maintainability
B
4 hrs
Test Coverage

File style.py has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding=utf-8

"""Styles."""

from collections import OrderedDict
Severity: Minor
Found in safe/impact_function/style.py - About 2 hrs to fix

    Function _format_label has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _format_label(
    Severity: Minor
    Found in safe/impact_function/style.py - About 45 mins to fix

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

      def _add_not_exposed(
      Severity: Minor
      Found in safe/impact_function/style.py - About 35 mins to fix

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

        def generate_classified_legend(
        Severity: Minor
        Found in safe/impact_function/style.py - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status