fnando/test_squad

View on GitHub

Showing 4 of 6 total issues

Function PhantomJS has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Mocha.reporters.PhantomJS = function(runner) {
  if (!navigator.userAgent.match(/phantomjs/i)) {
    return;
  }

Severity: Major
Found in app/assets/javascripts/test_squad/mocha-reporter.js - About 3 hrs to fix

    Function onCallback has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      page.onCallback = function(message){
        if (message.name === 'suite start') {
          suite = {tests: []};
          suite.title = message.title;
    
    
    Severity: Major
    Found in phantomjs/runner.js - About 2 hrs to fix

      Function PhantomReporter has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        jasmineRequire.PhantomReporter = function() {
          function PhantomReporter(options) {
            var stats = {
              passes: 0,
              fails: 0,
      Severity: Major
      Found in app/assets/javascripts/test_squad/jasmine-phantom.js - About 2 hrs to fix

        Function PhantomReporter has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function PhantomReporter(options) {
              var stats = {
                passes: 0,
                fails: 0,
                pending: 0,
        Severity: Major
        Found in app/assets/javascripts/test_squad/jasmine-phantom.js - About 2 hrs to fix
          Severity
          Category
          Status
          Source
          Language