inasafe/inasafe

View on GitHub

Showing 305 of 1,497 total issues

File fields.py has 2644 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding=utf-8

"""Definitions relating to fields."""

from qgis.PyQt.QtCore import QVariant
Severity: Major
Found in safe/definitions/fields.py - About 1 wk to fix

    File impact_function.py has 2411 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # coding=utf-8
    
    """Impact Function."""
    
    
    
    Severity: Major
    Found in safe/impact_function/impact_function.py - About 6 days to fix

      File hazard_classifications.py has 1902 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # coding=utf-8
      """Definitions relating to hazards classifications.
      
      See https://github.com/inasafe/inasafe/issues/2920#issuecomment-229874044
      to have a table showing you classes of each kind of hazard.
      Severity: Major
      Found in safe/definitions/hazard_classifications.py - About 5 days to fix

        File dock.py has 1321 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # coding=utf-8
        """InaSAFE Dock."""
        
        
        import codecs
        Severity: Major
        Found in safe/gui/widgets/dock.py - About 3 days to fix

          File definitions_help.py has 1243 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # coding=utf-8
          """Help text for the dock widget."""
          
          
          import copy
          Severity: Major
          Found in safe/gui/tools/help/definitions_help.py - About 3 days to fix

            File multi_exposure_wrapper.py has 1192 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # coding=utf-8
            
            """
            Multi-exposure wrapper.
            
            
            Severity: Major
            Found in safe/impact_function/multi_exposure_wrapper.py - About 3 days to fix

              File step_kw33_multi_classifications.py has 970 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # coding=utf-8
              """InaSAFE Wizard Step Multi Classifications."""
              
              
              import logging
              Severity: Major
              Found in safe/gui/tools/wizard/step_kw33_multi_classifications.py - About 2 days to fix

                File components.py has 875 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # coding=utf-8
                """Contains definitions about Report components.
                
                """
                
                
                Severity: Major
                Found in safe/definitions/reports/components.py - About 2 days to fix

                  File plugin.py has 850 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # coding=utf-8
                  """InaSAFE Plugin."""
                  
                  import sys
                  import os
                  Severity: Major
                  Found in safe/plugin.py - About 2 days to fix

                    File shake_grid.py has 833 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # coding=utf-8
                    """A converter for USGS shakemap grid.xml files."""
                    
                    
                    import codecs
                    Severity: Major
                    Found in safe/gui/tools/shake_grid/shake_grid.py - About 2 days to fix

                      File exposure_classifications.py has 828 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # coding=utf-8
                      
                      """Definitions relating to exposure classifications."""
                      
                      from safe.utilities.i18n import tr
                      Severity: Major
                      Found in safe/definitions/exposure_classifications.py - About 1 day to fix

                        File population_post_processors.py has 811 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # coding=utf-8
                        
                        """Postprocessors about population and demographics."""
                        
                        from collections import OrderedDict
                        Severity: Major
                        Found in safe/processors/population_post_processors.py - About 1 day to fix

                          File options_dialog.py has 760 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # coding=utf-8
                          """InaSAFE Options Dialog."""
                          
                          
                          import logging
                          Severity: Major
                          Found in safe/gui/tools/options_dialog.py - About 1 day to fix

                            File concepts.py has 736 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            # coding=utf-8
                            """Concepts used in various places in InaSAFE.
                            
                            Where possible please supply citations. Concepts are used in reporting display
                            and in other places like the wizard to ensure that the user will have adequate
                            Severity: Major
                            Found in safe/definitions/concepts.py - About 1 day to fix

                              File batch_dialog.py has 721 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # coding=utf-8
                              """
                              InaSAFE Disaster risk assessment tool developed by AusAid -
                              **Script runner dialog.**
                              
                              
                              Severity: Major
                              Found in safe/gui/tools/batch/batch_dialog.py - About 1 day to fix

                                File wizard_dialog.py has 710 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                # coding=utf-8
                                """Wizard Dialog."""
                                
                                
                                import logging
                                Severity: Major
                                Found in safe/gui/tools/wizard/wizard_dialog.py - About 1 day to fix

                                  File needs_manager_dialog.py has 702 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  # coding=utf-8
                                  """Need Manager Dialog."""
                                  
                                  
                                  import os
                                  Severity: Major
                                  Found in safe/gui/tools/minimum_needs/needs_manager_dialog.py - About 1 day to fix

                                    File impact_report.py has 685 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    # coding=utf-8
                                    """Module to generate impact report.
                                    
                                    Enable dynamic report generation based on report metadata.
                                    Easily customize map report or document based report.
                                    Severity: Major
                                    Found in safe/report/impact_report.py - About 1 day to fix

                                      File multi_exposure_dialog.py has 607 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      # coding=utf-8
                                      
                                      """Multi Exposure Tool."""
                                      
                                      
                                      
                                      Severity: Major
                                      Found in safe/gui/tools/multi_exposure_dialog.py - About 1 day to fix

                                        File utilities.py has 597 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        # coding=utf-8
                                        """Utilities module for helping definitions retrieval."""
                                        
                                        from collections import OrderedDict
                                        from copy import deepcopy
                                        Severity: Major
                                        Found in safe/definitions/utilities.py - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language