Showing 305 of 1,497 total issues
File default.py
has 591 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""
Module for basic renderer we support. Currently we have:
ImpactFunction
has 67 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ImpactFunction():
"""Impact Function."""
def __init__(self):
File aggregate_postprocessors.py
has 563 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module used to generate context for aggregation postprocessors sections.
"""
from collections import OrderedDict
File base_metadata.py
has 560 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""This module base metadata implementation."""
import abc
File hazard.py
has 529 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Definitions relating to hazards."""
from safe.definitions.caveats import (
File html_report.py
has 516 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""QGIS Expressions which are available in the QGIS GUI interface."""
from os.path import dirname, join, exists
File keyword_io.py
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Keyword IO implementation."""
import logging
File utilities.py
has 506 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Utilities for InaSAFE."""
import colorsys
Plugin
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Plugin():
"""The QGIS interface implementation for the InaSAFE plugin.
This class acts as the 'glue' between QGIS and our custom logic.
File print_report_dialog.py
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""This is a dialog to print a custom map report.
"""
import logging
from copy import deepcopy
File units.py
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Definitions relating to units."""
from collections import OrderedDict
File map_report.py
has 471 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""QGIS Expressions which are available in the QGIS GUI interface."""
import os
File metadata.py
has 469 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Metadata Utilities."""
import logging
import os
from copy import deepcopy
File exposure.py
has 462 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Definitions relating to exposure in InaSAFE."""
from safe.definitions.caveats import caveat_incomplete_data
from safe.definitions.concepts import concepts
Function content
has 173 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def content():
"""Helper method that returns just the content.
This method was added so that the text could be reused in the
dock_help module.
File analysis_detail.py
has 453 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module used to generate context for analysis detail section."""
File peta_bencana_dialog.py
has 450 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""
InaSAFE Disaster risk assessment tool developed by AusAid -
**Import Dialog.**
File osm_downloader_dialog.py
has 429 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""
InaSAFE Disaster risk assessment tool developed by AusAid -
**Import Dialog.**
Function dynamic_translations
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def dynamic_translations():
"""These listed here so they get translated apriori to loading data."""
# Bangunan DKI
tr('DKI buildings')
# Banjir seperti 2007
File composer.py
has 420 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module used to generate context for composer related rendering.
Particular example are:
- Map rendering