jacometoss/PyEWS

View on GitHub

Showing 214 of 214 total issues

Avoid deeply nested control flow statements.
Open

                    if ((round(datos[i][7],3)*FA*FT90>=(In)) and (((round(datos[i][7],3))/In)>=Fcond)):
                        datos[i].append('Yes')
                    else:
                        datos[i].append('Not')
                        
Severity: Major
Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ((round(datos[i][5],3)*FA*FT60>=(In)) and (((round(datos[i][5],3))/In)>=Fcond)):
                            datos[i].append('Yes')
                        else:
                            datos[i].append('Not')
    
    Severity: Major
    Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ((round(datos[i][6],3)*FA*FT75>=In) and (((round(datos[i][6],3))/In)>=Fcond)):
                              datos[i].append('Yes')
                          else:
                              datos[i].append('Not')
      
      Severity: Major
      Found in electricalwiresizes/mbtal.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if ((round(datos[i][6],3)*FA*FT75>=(In)) and (((round(datos[i][6],3))/In)>=Fcond)):
                                datos[i].append('Yes')
                            else:
                                datos[i].append('Not')
        
        Severity: Major
        Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if ((round(datos[i][5],3)*FA*FT60>=In) and (((round(datos[i][5],3))/In)>Fcond)):
                                  datos[i].append('Yes')
                              else:
                                  datos[i].append('Not')
          
          Severity: Major
          Found in electricalwiresizes/mbtal.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if (network[i][2]==iDAlm[k]):
                                    #Zpu se complementa
                                    dtb[i].append(conductors[j][k])
                                    #print (datos[j][k])
                #print ("-------------------------------------")                     
            Severity: Major
            Found in electricalwiresizes/distributional.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                        for (var l = 0; l < matchingDocumentRefs.length; l++) {
                          /*
                           * All metadata for this term/field/document triple
                           * are then extracted and collected into an instance
                           * of lunr.MatchData ready to be returned in the query
              Severity: Major
              Found in site/search/lunr.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ((round(datos[i][5],3)*FA*FT60>=(In)) and (((round(datos[i][5],3))/In)>=Fcond)):
                                        datos[i].append('Yes')
                                    else:
                                        datos[i].append('Not')
                
                Severity: Major
                Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if ((round(datos[i][5],3)*FA*FT60>=(In)) and (((round(datos[i][5],3))/In)>=Fcond)):
                                          datos[i].append('Yes')
                                      else:
                                          datos[i].append('Not')
                  
                  Severity: Major
                  Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if ((round(datos[i][7],3)*FA*FT90>=(In)) and (((round(datos[i][7],3))/In)>=Fcond)):
                                            datos[i].append('Yes')
                                        else:
                                            datos[i].append('Not')
                                            
                    Severity: Major
                    Found in electricalwiresizes/mbtcu.py - About 45 mins to fix

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                        if((name==None or data==None)):
                              t = time.localtime()
                              print('''
                                       :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
                                                         
                      Severity: Minor
                      Found in electricalwiresizes/exportcsv.py and 1 other location - About 40 mins to fix
                      electricalwiresizes/dbcircuitcd.py on lines 9..28

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 34.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                          if(carga==None or view==None):
                              t = time.localtime()
                              print('''
                                       :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
                                                      
                      Severity: Minor
                      Found in electricalwiresizes/dbcircuitcd.py and 1 other location - About 40 mins to fix
                      electricalwiresizes/exportcsv.py on lines 5..25

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 34.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Identical blocks of code found in 2 locations. Consider refactoring.
                      Open

                          for i in range(len(network)):
                              #Agregamos la corriente a la tabla
                              dtb[i].append(sistemaIn(network,i))
                      Severity: Minor
                      Found in electricalwiresizes/distributional.py and 1 other location - About 40 mins to fix
                      electricalwiresizes/distributioncu.py on lines 47..49

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 34.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Identical blocks of code found in 2 locations. Consider refactoring.
                      Open

                          for i in range(len(network)):
                              #Agregamos la corriente a la tabla
                              dtb[i].append(sistemaIn(network,i))
                      Severity: Minor
                      Found in electricalwiresizes/distributioncu.py and 1 other location - About 40 mins to fix
                      electricalwiresizes/distributional.py on lines 47..49

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 34.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

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

                      def icc(conductor=None,T1=None,T2=None,fhz=None,view=None):
                      Severity: Minor
                      Found in electricalwiresizes/shortcircuit.py - About 35 mins to fix

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                        dbcircuit[i].append(datos[i][j][3])
                        Severity: Major
                        Found in electricalwiresizes/dbcircuitcd.py and 25 other locations - About 35 mins to fix
                        electricalwiresizes/dbcircuit.py on lines 56..56
                        electricalwiresizes/dbcircuit.py on lines 80..80
                        electricalwiresizes/dbcircuit.py on lines 81..81
                        electricalwiresizes/dbcircuit.py on lines 82..82
                        electricalwiresizes/dbcircuit.py on lines 87..88
                        electricalwiresizes/dbcircuit.py on lines 89..90
                        electricalwiresizes/dbcircuit.py on lines 91..92
                        electricalwiresizes/dbcircuit.py on lines 93..94
                        electricalwiresizes/dbcircuit.py on lines 97..97
                        electricalwiresizes/dbcircuit.py on lines 98..98
                        electricalwiresizes/dbcircuit.py on lines 99..99
                        electricalwiresizes/dbcircuit.py on lines 100..100
                        electricalwiresizes/dbcircuit.py on lines 101..101
                        electricalwiresizes/dbcircuit.py on lines 103..103
                        electricalwiresizes/dbcircuitcd.py on lines 49..49
                        electricalwiresizes/dbcircuitcd.py on lines 50..50
                        electricalwiresizes/dbcircuitcd.py on lines 55..55
                        electricalwiresizes/dbcircuitcd.py on lines 57..57
                        electricalwiresizes/dbcircuitcd.py on lines 58..58
                        electricalwiresizes/dbcircuitcd.py on lines 59..59
                        electricalwiresizes/dbcircuitcd.py on lines 60..60
                        electricalwiresizes/dbcircuitcd.py on lines 61..61
                        electricalwiresizes/dbcircuitcd.py on lines 62..62
                        electricalwiresizes/dbcircuitcd.py on lines 63..63
                        electricalwiresizes/dbcircuitcd.py on lines 65..65

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 33.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                        dbcircuit[i].append(datos[i][j][1])
                        Severity: Major
                        Found in electricalwiresizes/dbcircuitcd.py and 25 other locations - About 35 mins to fix
                        electricalwiresizes/dbcircuit.py on lines 56..56
                        electricalwiresizes/dbcircuit.py on lines 80..80
                        electricalwiresizes/dbcircuit.py on lines 81..81
                        electricalwiresizes/dbcircuit.py on lines 82..82
                        electricalwiresizes/dbcircuit.py on lines 87..88
                        electricalwiresizes/dbcircuit.py on lines 89..90
                        electricalwiresizes/dbcircuit.py on lines 91..92
                        electricalwiresizes/dbcircuit.py on lines 93..94
                        electricalwiresizes/dbcircuit.py on lines 97..97
                        electricalwiresizes/dbcircuit.py on lines 98..98
                        electricalwiresizes/dbcircuit.py on lines 99..99
                        electricalwiresizes/dbcircuit.py on lines 100..100
                        electricalwiresizes/dbcircuit.py on lines 101..101
                        electricalwiresizes/dbcircuit.py on lines 103..103
                        electricalwiresizes/dbcircuitcd.py on lines 49..49
                        electricalwiresizes/dbcircuitcd.py on lines 55..55
                        electricalwiresizes/dbcircuitcd.py on lines 56..56
                        electricalwiresizes/dbcircuitcd.py on lines 57..57
                        electricalwiresizes/dbcircuitcd.py on lines 58..58
                        electricalwiresizes/dbcircuitcd.py on lines 59..59
                        electricalwiresizes/dbcircuitcd.py on lines 60..60
                        electricalwiresizes/dbcircuitcd.py on lines 61..61
                        electricalwiresizes/dbcircuitcd.py on lines 62..62
                        electricalwiresizes/dbcircuitcd.py on lines 63..63
                        electricalwiresizes/dbcircuitcd.py on lines 65..65

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 33.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                        dbcircuit[i].append(datos[i][j][7])
                        Severity: Major
                        Found in electricalwiresizes/dbcircuitcd.py and 25 other locations - About 35 mins to fix
                        electricalwiresizes/dbcircuit.py on lines 56..56
                        electricalwiresizes/dbcircuit.py on lines 80..80
                        electricalwiresizes/dbcircuit.py on lines 81..81
                        electricalwiresizes/dbcircuit.py on lines 82..82
                        electricalwiresizes/dbcircuit.py on lines 87..88
                        electricalwiresizes/dbcircuit.py on lines 89..90
                        electricalwiresizes/dbcircuit.py on lines 91..92
                        electricalwiresizes/dbcircuit.py on lines 93..94
                        electricalwiresizes/dbcircuit.py on lines 97..97
                        electricalwiresizes/dbcircuit.py on lines 98..98
                        electricalwiresizes/dbcircuit.py on lines 99..99
                        electricalwiresizes/dbcircuit.py on lines 100..100
                        electricalwiresizes/dbcircuit.py on lines 101..101
                        electricalwiresizes/dbcircuit.py on lines 103..103
                        electricalwiresizes/dbcircuitcd.py on lines 49..49
                        electricalwiresizes/dbcircuitcd.py on lines 50..50
                        electricalwiresizes/dbcircuitcd.py on lines 55..55
                        electricalwiresizes/dbcircuitcd.py on lines 56..56
                        electricalwiresizes/dbcircuitcd.py on lines 57..57
                        electricalwiresizes/dbcircuitcd.py on lines 58..58
                        electricalwiresizes/dbcircuitcd.py on lines 59..59
                        electricalwiresizes/dbcircuitcd.py on lines 61..61
                        electricalwiresizes/dbcircuitcd.py on lines 62..62
                        electricalwiresizes/dbcircuitcd.py on lines 63..63
                        electricalwiresizes/dbcircuitcd.py on lines 65..65

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 33.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                        dbcircuit[i].append(datos[i][j][12])
                        Severity: Major
                        Found in electricalwiresizes/dbcircuitcd.py and 25 other locations - About 35 mins to fix
                        electricalwiresizes/dbcircuit.py on lines 56..56
                        electricalwiresizes/dbcircuit.py on lines 80..80
                        electricalwiresizes/dbcircuit.py on lines 81..81
                        electricalwiresizes/dbcircuit.py on lines 82..82
                        electricalwiresizes/dbcircuit.py on lines 87..88
                        electricalwiresizes/dbcircuit.py on lines 89..90
                        electricalwiresizes/dbcircuit.py on lines 91..92
                        electricalwiresizes/dbcircuit.py on lines 93..94
                        electricalwiresizes/dbcircuit.py on lines 97..97
                        electricalwiresizes/dbcircuit.py on lines 98..98
                        electricalwiresizes/dbcircuit.py on lines 99..99
                        electricalwiresizes/dbcircuit.py on lines 100..100
                        electricalwiresizes/dbcircuit.py on lines 101..101
                        electricalwiresizes/dbcircuit.py on lines 103..103
                        electricalwiresizes/dbcircuitcd.py on lines 49..49
                        electricalwiresizes/dbcircuitcd.py on lines 50..50
                        electricalwiresizes/dbcircuitcd.py on lines 55..55
                        electricalwiresizes/dbcircuitcd.py on lines 56..56
                        electricalwiresizes/dbcircuitcd.py on lines 57..57
                        electricalwiresizes/dbcircuitcd.py on lines 58..58
                        electricalwiresizes/dbcircuitcd.py on lines 59..59
                        electricalwiresizes/dbcircuitcd.py on lines 60..60
                        electricalwiresizes/dbcircuitcd.py on lines 61..61
                        electricalwiresizes/dbcircuitcd.py on lines 62..62
                        electricalwiresizes/dbcircuitcd.py on lines 63..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 33.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                        dbcircuit[i].append(datos[i][j][14])
                        Severity: Major
                        Found in electricalwiresizes/dbcircuit.py and 25 other locations - About 35 mins to fix
                        electricalwiresizes/dbcircuit.py on lines 56..56
                        electricalwiresizes/dbcircuit.py on lines 80..80
                        electricalwiresizes/dbcircuit.py on lines 81..81
                        electricalwiresizes/dbcircuit.py on lines 82..82
                        electricalwiresizes/dbcircuit.py on lines 87..88
                        electricalwiresizes/dbcircuit.py on lines 89..90
                        electricalwiresizes/dbcircuit.py on lines 91..92
                        electricalwiresizes/dbcircuit.py on lines 93..94
                        electricalwiresizes/dbcircuit.py on lines 97..97
                        electricalwiresizes/dbcircuit.py on lines 98..98
                        electricalwiresizes/dbcircuit.py on lines 100..100
                        electricalwiresizes/dbcircuit.py on lines 101..101
                        electricalwiresizes/dbcircuit.py on lines 103..103
                        electricalwiresizes/dbcircuitcd.py on lines 49..49
                        electricalwiresizes/dbcircuitcd.py on lines 50..50
                        electricalwiresizes/dbcircuitcd.py on lines 55..55
                        electricalwiresizes/dbcircuitcd.py on lines 56..56
                        electricalwiresizes/dbcircuitcd.py on lines 57..57
                        electricalwiresizes/dbcircuitcd.py on lines 58..58
                        electricalwiresizes/dbcircuitcd.py on lines 59..59
                        electricalwiresizes/dbcircuitcd.py on lines 60..60
                        electricalwiresizes/dbcircuitcd.py on lines 61..61
                        electricalwiresizes/dbcircuitcd.py on lines 62..62
                        electricalwiresizes/dbcircuitcd.py on lines 63..63
                        electricalwiresizes/dbcircuitcd.py on lines 65..65

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 33.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Severity
                        Category
                        Status
                        Source
                        Language