jacometoss/PyEWS

View on GitHub

Showing 83 of 214 total issues

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 ((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 (network[i][2]==iDAlm[k]):
                              #Zpu se complementa
                              dtb[i].append(conductors[j][k])
                              #print (datos[j][k])
          #print ("-------------------------------------")                     
      Severity: Major
      Found in electricalwiresizes/distributioncu.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 ((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/mbtal.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if (clause.presence == lunr.Query.presence.REQUIRED) {
                        clauseMatches = clauseMatches.union(matchingDocumentsSet)
            
                        if (requiredMatches[field] === undefined) {
                          requiredMatches[field] = lunr.Set.complete
            Severity: Major
            Found in site/search/lunr.js - 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

                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 (nEdge in frame.output.edges) {
                              // an edge already exists for this character
                              // no need to create a new node, just set the finality
                              // bit unless this node is already final
                              next = frame.output.edges[nEdge]
                  Severity: Major
                  Found in site/search/lunr.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                              if (termFieldCache[termField]) {
                                continue
                              }
                    Severity: Major
                    Found in site/search/lunr.js - 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][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 ((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][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/mbtal.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                        if (clause.presence == lunr.Query.presence.PROHIBITED) {
                                          if (prohibitedMatches[field] === undefined) {
                                            prohibitedMatches[field] = lunr.Set.empty
                                          }
                              
                              
                              Severity: Major
                              Found in site/search/lunr.js - 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/mbtal.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/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/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/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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language