rmoliva/ockham

View on GitHub
src/ockham.js

Summary

Maintainability
D
1 day
Test Coverage

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

        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

          There are no issues that match your filters.

          Category
          Status