rmoliva/ockham

View on GitHub

Showing 7 of 7 total issues

Function Ockham has 189 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function() {
      'use strict';
      return {
        error: function(message) {
          return {
Severity: Major
Found in src/ockham.js - About 7 hrs to fix

    Function fsm has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            fsm: function(config_object) {
              var data,
                state,
                current = null,
                config = config_object.config(this),
    Severity: Major
    Found in src/ockham.js - About 4 hrs to fix

      Function state has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              state: function(ockham, name, parent) {
                var from_transitions = [],
                getCompleteName = function() {
                  var names = [];
                  if (parent) {
      Severity: Major
      Found in src/ockham.js - About 2 hrs to fix

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

        module.exports = function(grunt) {
        
          grunt.config('jasmine', {
            all: {
              src: grunt.file.readJSON('files.json'),
        Severity: Major
        Found in grunt/contrib-jasmine.js - About 2 hrs to fix

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

          module.exports = function(grunt) {
            
            grunt.config('jshint', {  
              all: [
                'Gruntfile.js', 
          Severity: Minor
          Found in grunt/contrib-jshint.js - About 1 hr to fix

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

            module.exports = function(grunt) {
              
              grunt.config('uglify', {
                options: {
                  mangle: {
            Severity: Minor
            Found in grunt/contrib-uglify.js - About 1 hr to fix

              Avoid deeply nested control flow statements.
              Open

                                    if (key_data.hasOwnProperty(substate)) {
                                      substate_data = key_data[substate];
                                      _createState(
                                        ockham,
                                        substate,
              Severity: Major
              Found in src/ockham.js - About 45 mins to fix
                Severity
                Category
                Status
                Source
                Language