Risto-Stevcev/grunt-simple-protractor

View on GitHub

Showing 3 of 3 total issues

Function exports has 120 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(grunt) {
  var http = require('http')
  var path = require('path')
  var fs = require('fs')

Severity: Major
Found in tasks/protractor.js - About 4 hrs to fix

    Function exports has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
      var nodeBinary = 'node'
      try {
        require('fs').realpathSync('/usr/bin/node')
      }
    Severity: Minor
    Found in Gruntfile.js - About 1 hr to fix

      Function runProtractor has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function runProtractor(protractorLibPath) {
            var protractorArgs = []
            Object.keys(options).forEach(function(key) {
              if (!simpleProtractorOpts.some(function(opt) { return opt === key })) {
                if (typeof options[key] === 'boolean' && options[key] === true) {
      Severity: Minor
      Found in tasks/protractor.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language