codenautas/fast-devel-server

View on GitHub
server/auto.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function loadFrames has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function loadFrames(){
    var pattern=/^((https?:\/\/)?[-a-z.0-9]+(:\d+)?)\/file(\/|$)/;
    actualFrames.forEach(function(frame){
        frame.controlTagLateral.textContent='T';
        if(!frame.codenautas_info){
Severity: Major
Found in server/auto.js - About 2 hrs to fix

    Function onload has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    onload:function(e){
                        var info=JSON.parse(this.responseText);
                        frame.codenautas_info.originFileName=info.originFileName;
                        if(frame.codenautas_info.mtime!='ignored' && frame.codenautas_info.mtime<info.mtime){
                            frame.controlTagLateral.textContent='R';
    Severity: Minor
    Found in server/auto.js - About 2 hrs to fix

      Function onload has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                              frame.onload=function(){
                                  var insideFrame=false;
                                  try{
                                      insideFrame=pattern.test(frame.contentDocument.URL);
                                  }catch(err){
      Severity: Minor
      Found in server/auto.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status