Showing 305 of 1,497 total issues
File extra_keywords.py
has 411 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Definitions relating to extra keywords."""
from datetime import datetime
File general_report.py
has 408 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module used to extract context for general summary."""
from safe.definitions.exposure import exposure_population
from safe.definitions.fields import (
hazard_count_field,
File analysis_provenance_details.py
has 400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module used to generate context for analysis provenance details."""
from collections import OrderedDict
Dock
has 41 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Dock(QDockWidget, FORM_CLASS):
"""Dock implementation class for the inaSAFE plugin."""
def __init__(self, iface):
File tools.py
has 389 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Tools for vector layers."""
File svg_charts.py
has 384 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module to generate context for SVG Chart.
This context then used for SVG Jinja2 generation.
"""
File report_metadata.py
has 377 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Module for class container of Report and ReportComponent Metadata.
"""
from copy import deepcopy
File contour.py
has 370 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Create contour from shakemap raster layer."""
import logging
import os
OptionsDialog
has 37 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OptionsDialog(QDialog, FORM_CLASS):
"""Options dialog for the InaSAFE plugin."""
def __init__(self, iface, parent=None, qsetting=''):
MultiExposureImpactFunction
has 37 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MultiExposureImpactFunction():
"""Multi-exposure wrapper.
.. versionadded:: 4.3
File prepare_vector_layer.py
has 355 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Prepare layers for InaSAFE."""
ImpactReport
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ImpactReport():
"""A class for creating and generating report.
.. versionadded:: 4.0
File options_help.py
has 352 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Help text for options dialog."""
from safe import messaging as m
from safe.messaging import styles
Function __init__
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, parent=None, iface=None, dock=None):
"""Constructor for the dialog.
.. note:: In QtDesigner the advanced editor's predefined keywords
list should be shown in english always, so when adding entries to
File wizard_step_browser.py
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Wizard Step Browser."""
import os
File provenance.py
has 336 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Provenance Keys."""
from safe.definitions.layer_purposes import (
layer_purpose_exposure_summary,
BaseMetadata
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BaseMetadata(with_metaclass(abc.ABCMeta, object)):
"""
Abstract Metadata class, this has to be subclassed.
File utilities.py
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Utilities module."""
File step_fc90_analysis.py
has 326 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""InaSAFE Wizard Step Analysis."""
import logging
import os
File extent_selector_dialog.py
has 323 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding=utf-8
"""Extent selector dialog."""
import logging
import sqlite3