rootslab/syllabus

View on GitHub

Showing 63 of 94 total issues

Function commands has a Cognitive Complexity of 107 (exceeds 5 allowed). Consider refactoring.
Open

exports.commands = function ( encode, error ) {
    var Abaco = require( 'abaco' )
        , parseIntArray = Abaco.parseIntArray
        , Bolgia = require( 'bolgia' )
        , doString = Bolgia.doString
Severity: Minor
Found in lib/commands/keys.js - About 2 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function Syllabus has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
Open

exports.Syllabus = function ( develop ) {
    var Bolgia = require( 'bolgia' )
        , Hoar = require( 'hoar' )
        , lte = Hoar.lte
        , doString = Bolgia.doString
Severity: Minor
Found in lib/syllabus.js - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function commands has a Cognitive Complexity of 86 (exceeds 5 allowed). Consider refactoring.
Open

exports.commands = function ( encode, error ) {
    var Abaco = require( 'abaco' )
        , parseIntArray = Abaco.parseIntArray
        , Bolgia = require( 'bolgia' )
        , doString = Bolgia.doString
Severity: Minor
Found in lib/commands/server.js - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function commands has 298 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.commands = function ( encode, error ) {
    var Abaco = require( 'abaco' )
        , parseIntArray = Abaco.parseIntArray
        , Bolgia = require( 'bolgia' )
        , doString = Bolgia.doString
Severity: Major
Found in lib/commands/server.js - About 1 day to fix

    Function commands has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
    Open

    exports.commands = function ( encode, error ) {
        var Abaco = require( 'abaco' )
            , Bolgia = require( 'bolgia' )
            , parseIntArray = Abaco.parseIntArray
            , parseFloatArray = Abaco.parseFloatArray
    Severity: Minor
    Found in lib/commands/strings.js - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function commands has a Cognitive Complexity of 64 (exceeds 5 allowed). Consider refactoring.
    Open

    exports.commands = function ( encode, error ) {
        var Abaco = require( 'abaco' )
            , parseIntArray = Abaco.parseIntArray
            , parseFloatArray = Abaco.parseFloatArray
            , Bolgia = require( 'bolgia' )
    Severity: Minor
    Found in lib/commands/sortedsets.js - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function infos has 226 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.infos = ( function () {
    
        return {
    
            bgrewriteaof : {
    Severity: Major
    Found in lib/infos/server.js - About 1 day to fix

      Function commands has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring.
      Open

      exports.commands = function ( encode, error ) {
          var Abaco = require( 'abaco' )
              , Bolgia = require( 'bolgia' )
              , parseIntArray = Abaco.parseIntArray
              , parseFloatArray = Abaco.parseFloatArray
      Severity: Minor
      Found in lib/commands/geo.js - About 1 day to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function commands has 195 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.commands = function ( encode, error ) {
          var Abaco = require( 'abaco' )
              , parseIntArray = Abaco.parseIntArray
              , Bolgia = require( 'bolgia' )
              , doString = Bolgia.doString
      Severity: Major
      Found in lib/commands/keys.js - About 7 hrs to fix

        Function commands has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
        Open

        exports.commands = function ( encode, error ) {
            var Abaco = require( 'abaco' )
                , parseIntArray = Abaco.parseIntArray
                , Bolgia = require( 'bolgia' )
                , doString = Bolgia.doString
        Severity: Minor
        Found in lib/commands/sets.js - About 7 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function commands has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
        Open

        exports.commands = function ( encode, error ) {
            var Abaco = require( 'abaco' )
                , Bolgia = require( 'bolgia' )
                , parseIntArray = Abaco.parseIntArray
                , parseFloatArray = Abaco.parseFloatArray
        Severity: Minor
        Found in lib/commands/hashes.js - About 7 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function infos has 172 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        exports.infos = ( function () {
        
            return {
        
                append : {
        Severity: Major
        Found in lib/infos/strings.js - About 6 hrs to fix

          Function infos has 171 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          exports.infos = ( function () {
          
              return {
          
                  del : {
          Severity: Major
          Found in lib/infos/keys.js - About 6 hrs to fix

            Function commands has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
            Open

            exports.commands = function ( encode, error ) {
                var Abaco = require( 'abaco' )
                    , parseIntArray = Abaco.parseIntArray
                    , isArray = Array.isArray
                    ;
            Severity: Minor
            Found in lib/commands/lists.js - About 6 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function commands has 165 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            exports.commands = function ( encode, error ) {
                var Abaco = require( 'abaco' )
                    , Bolgia = require( 'bolgia' )
                    , parseIntArray = Abaco.parseIntArray
                    , parseFloatArray = Abaco.parseFloatArray
            Severity: Major
            Found in lib/commands/strings.js - About 6 hrs to fix

              Function commands has 162 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              exports.commands = function ( encode, error ) {
                  var Abaco = require( 'abaco' )
                      , parseIntArray = Abaco.parseIntArray
                      , parseFloatArray = Abaco.parseFloatArray
                      , Bolgia = require( 'bolgia' )
              Severity: Major
              Found in lib/commands/sortedsets.js - About 6 hrs to fix

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

                module.exports = ( function () {
                    var fs = require( 'fs' )
                        , util = require( 'util' )
                        , Bolgia = require( 'bolgia' )
                        , Camphora = require( 'camphora' )
                Severity: Major
                Found in lib/lua/index.js - About 5 hrs to fix

                  Function exports has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring.
                  Open

                  module.exports = ( function () {
                      var fs = require( 'fs' )
                          , util = require( 'util' )
                          , Bolgia = require( 'bolgia' )
                          , Camphora = require( 'camphora' )
                  Severity: Minor
                  Found in lib/lua/index.js - About 5 hrs to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function Syllabus has 140 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  exports.Syllabus = function ( develop ) {
                      var Bolgia = require( 'bolgia' )
                          , Hoar = require( 'hoar' )
                          , lte = Hoar.lte
                          , doString = Bolgia.doString
                  Severity: Major
                  Found in lib/syllabus.js - About 5 hrs to fix

                    Function infos has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    exports.infos = ( function () {
                    
                        return {
                    
                            zadd : {
                    Severity: Major
                    Found in lib/infos/sortedsets.js - About 5 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language