Showing 25 of 33 total issues
Function 1
has 1161 lines of code (exceeds 25 allowed). Consider refactoring. Open
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"
File kommunkoder.js
has 1927 lines of code (exceeds 250 allowed). Consider refactoring. Open
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>
Function exports
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
// Show elapsed time at the end
require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
Function 12
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./baseIsEqualDeep":12}],12:[function(require,module,exports){
var equalArrays = require('./equalArrays'),
equalByTag = require('./equalByTag'),
equalObjects = require('./equalObjects'),
isArray = require('../lang/isArray'),
Function baseIsEqualDeep
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = arrayTag,
othTag = arrayTag;
Function 22
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],22:[function(require,module,exports){
var keys = require('../object/keys');
/** Used for native method references. */
var objectProto = Object.prototype;
Function 37
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../internal/isObjectLike":26}],37:[function(require,module,exports){
var isLength = require('../internal/isLength'),
isObjectLike = require('../internal/isObjectLike');
/** `Object#toString` result references. */
Function equalObjects
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
var objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
othLength = othProps.length;
Function 13
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function 40
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'),
Function 20
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"../utility/identity":43}],20:[function(require,module,exports){
/**
* A specialized version of `baseIsEqualDeep` for arrays with support for
* partial deep comparisons.
*
Function 2
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],2:[function(require,module,exports){
'use strict';
var isUndefined = require('lodash/lang/isUndefined');
var isArray = require('lodash/lang/isArray');
Function baseIsMatch
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
var length = props.length;
if (object == null) {
return !length;
}
Function equalArrays
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {
var index = -1,
arrLength = array.length,
othLength = other.length,
result = true;
Function 14
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./baseIsEqual":11}],14:[function(require,module,exports){
var baseIsMatch = require('./baseIsMatch'),
isStrictComparable = require('./isStrictComparable'),
keys = require('../object/keys');
Function 19
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],19:[function(require,module,exports){
var identity = require('../utility/identity');
/**
* A specialized version of `baseCallback` which only supports `this` binding
Consider simplifying this complex logical expression. Open
Open
if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
return false;
}
Consider simplifying this complex logical expression. Open
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;
}
Function baseIsEqualDeep
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) {
Function equalArrays
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) {