simon-johansson/kommunkoder

View on GitHub

Showing 25 of 33 total issues

Function 1 has 1161 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.kommunkoder = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports=[{
  "code": "0114",
  "municipality": "Upplands Väsby",
  "county": "Stockholms län"
Severity: Major
Found in kommunkoder.js - About 5 days to fix

    File kommunkoder.js has 1927 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     *   kommunkoder - v1.1.1
     *   Collection of all municipalities in Sweden with corresponding county and municipality codes (kommunkoder).
     *   https://github.com/simon-johansson/kommunkoder
     *   by Simon Johansson <mail@simon-johansson.com>
    Severity: Major
    Found in kommunkoder.js - About 5 days to fix

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

      module.exports = function (grunt) {
        // Show elapsed time at the end
        require('time-grunt')(grunt);
        // Load all grunt tasks
        require('load-grunt-tasks')(grunt);
      Severity: Major
      Found in Gruntfile.js - About 3 hrs to fix

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

        },{"./baseIsEqualDeep":12}],12:[function(require,module,exports){
        var equalArrays = require('./equalArrays'),
            equalByTag = require('./equalByTag'),
            equalObjects = require('./equalObjects'),
            isArray = require('../lang/isArray'),
        Severity: Major
        Found in kommunkoder.js - About 2 hrs to fix

          Function baseIsEqualDeep has 48 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
            var objIsArr = isArray(object),
                othIsArr = isArray(other),
                objTag = arrayTag,
                othTag = arrayTag;
          Severity: Minor
          Found in kommunkoder.js - About 1 hr to fix

            Function 22 has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{}],22:[function(require,module,exports){
            var keys = require('../object/keys');
            
            /** Used for native method references. */
            var objectProto = Object.prototype;
            Severity: Minor
            Found in kommunkoder.js - About 1 hr to fix

              Function 37 has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"../internal/isObjectLike":26}],37:[function(require,module,exports){
              var isLength = require('../internal/isLength'),
                  isObjectLike = require('../internal/isObjectLike');
              
              /** `Object#toString` result references. */
              Severity: Minor
              Found in kommunkoder.js - About 1 hr to fix

                Function equalObjects has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
                  var objProps = keys(object),
                      objLength = objProps.length,
                      othProps = keys(other),
                      othLength = othProps.length;
                Severity: Minor
                Found in kommunkoder.js - About 1 hr to fix

                  Function 13 has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{"../lang/isArray":32,"../lang/isTypedArray":37,"./equalArrays":20,"./equalByTag":21,"./equalObjects":22}],13:[function(require,module,exports){
                  var baseIsEqual = require('./baseIsEqual');
                  
                  /** Used for native method references. */
                  var objectProto = Object.prototype;
                  Severity: Minor
                  Found in kommunkoder.js - About 1 hr to fix

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

                    },{"../internal/isLength":25,"../internal/shimKeys":29,"../lang/isNative":33,"../lang/isObject":35}],40:[function(require,module,exports){
                    var isArguments = require('../lang/isArguments'),
                        isArray = require('../lang/isArray'),
                        isIndex = require('../internal/isIndex'),
                        isLength = require('../internal/isLength'),
                    Severity: Minor
                    Found in kommunkoder.js - About 1 hr to fix

                      Function 20 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{"../utility/identity":43}],20:[function(require,module,exports){
                      /**
                       * A specialized version of `baseIsEqualDeep` for arrays with support for
                       * partial deep comparisons.
                       *
                      Severity: Minor
                      Found in kommunkoder.js - About 1 hr to fix

                        Function 2 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{}],2:[function(require,module,exports){
                        'use strict';
                        
                        var isUndefined = require('lodash/lang/isUndefined');
                        var isArray =     require('lodash/lang/isArray');
                        Severity: Minor
                        Found in kommunkoder.js - About 1 hr to fix

                          Function baseIsMatch has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
                            var length = props.length;
                            if (object == null) {
                              return !length;
                            }
                          Severity: Minor
                          Found in kommunkoder.js - About 1 hr to fix

                            Function equalArrays has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {
                              var index = -1,
                                  arrLength = array.length,
                                  othLength = other.length,
                                  result = true;
                            Severity: Minor
                            Found in kommunkoder.js - About 1 hr to fix

                              Function 14 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              },{"./baseIsEqual":11}],14:[function(require,module,exports){
                              var baseIsMatch = require('./baseIsMatch'),
                                  isStrictComparable = require('./isStrictComparable'),
                                  keys = require('../object/keys');
                              
                              
                              Severity: Minor
                              Found in kommunkoder.js - About 1 hr to fix

                                Function 19 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                },{}],19:[function(require,module,exports){
                                var identity = require('../utility/identity');
                                
                                /**
                                 * A specialized version of `baseCallback` which only supports `this` binding
                                Severity: Minor
                                Found in kommunkoder.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                      if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&
                                          !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
                                        return false;
                                      }
                                  Severity: Major
                                  Found in kommunkoder.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                      if ((valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object') ||
                                          value == null || other == null) {
                                        // Return `false` unless both values are `NaN`.
                                        return value !== value && other !== other;
                                      }
                                    Severity: Major
                                    Found in kommunkoder.js - About 1 hr to fix

                                      Function baseIsEqualDeep has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
                                      Severity: Major
                                      Found in kommunkoder.js - About 50 mins to fix

                                        Function equalArrays has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {
                                        Severity: Major
                                        Found in kommunkoder.js - About 50 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language