myems-admin/js/ui-router/angular-ui-router.js

Summary

Maintainability
F
1 mo
Test Coverage

File angular-ui-router.js has 5643 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * State-based routing for AngularJS 1.x
 * NOTICE: This monolithic bundle also bundles the @uirouter/core code.
 *         This causes it to be incompatible with plugins that depend on @uirouter/core.
 *         We recommend switching to the ui-router-core.js and ui-router-angularjs.js bundles instead.
Severity: Major
Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 wks to fix

    Function Transition has 287 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var Transition = /** @class */ (function () {
            /**
             * Creates a new Transition object.
             *
             * If the target state is not valid, an error is thrown.
    Severity: Major
    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 day to fix

      Function UrlMatcher has 280 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var UrlMatcher = /** @class */ (function () {
              /**
               * @param pattern The pattern to compile into a matcher.
               * @param paramTypes The [[ParamTypes]] registry
               * @param paramFactory A [[ParamFactory]] object
      Severity: Major
      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 day to fix

        Function StateService has 232 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var StateService = /** @class */ (function () {
                /** @internal */
                function StateService(/** @internal */ router) {
                    this.router = router;
                    /** @internal */
        Severity: Major
        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 day to fix

          Function ViewService has 132 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var ViewService = /** @class */ (function () {
                  /** @internal */
                  function ViewService(/** @internal */ router) {
                      var _this = this;
                      this.router = router;
          Severity: Major
          Found in myems-admin/js/ui-router/angular-ui-router.js - About 5 hrs to fix

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

                var TransitionService = /** @class */ (function () {
                    /** @internal */
                    function TransitionService(_router) {
                        /** @internal */
                        this._transitionCount = 0;
            Severity: Major
            Found in myems-admin/js/ui-router/angular-ui-router.js - About 5 hrs to fix

              Function $ViewDirective has 124 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function $ViewDirective($view, $animate, $uiViewScroll, $interpolate, $q) {
                          function getRenderer() {
                              return {
                                  enter: function (element, target, cb) {
                                      if (ng.version.minor > 2) {
              Severity: Major
              Found in myems-admin/js/ui-router/angular-ui-router.js - About 4 hrs to fix

                Function Trace has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var Trace = /** @class */ (function () {
                        /** @internal */
                        function Trace() {
                            /** @internal */
                            this._enabled = {};
                Severity: Major
                Found in myems-admin/js/ui-router/angular-ui-router.js - About 4 hrs to fix

                  Function TransitionHook has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var TransitionHook = /** @class */ (function () {
                          function TransitionHook(transition, stateContext, registeredHook, options) {
                              var _this = this;
                              this.transition = transition;
                              this.stateContext = stateContext;
                  Severity: Major
                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 4 hrs to fix

                    Function $StateRefActiveDirective has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function $StateRefActiveDirective($state, $stateParams, $interpolate, $uiRouter) {
                                return {
                                    restrict: 'A',
                                    controller: [
                                        '$scope',
                    Severity: Major
                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 4 hrs to fix

                      Function PathUtils has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var PathUtils = /** @class */ (function () {
                              function PathUtils() {
                              }
                              /** Given a PathNode[], create an TargetState */
                              PathUtils.makeTargetState = function (registry, path) {
                      Severity: Major
                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                        Function TemplateFactory has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var TemplateFactory = /** @class */ (function () {
                                function TemplateFactory() {
                                    var _this = this;
                                    /** @hidden */ this._useHttp = ng.version.minor < 3;
                                    /** @hidden */ this.$get = [
                        Severity: Major
                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                          Function controller has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                              function ($scope, $element, $attrs) {
                                                  var states = [];
                                                  var activeEqClass;
                                                  var uiSrefActive;
                                                  // There probably isn't much point in $observing this
                          Severity: Major
                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                            Function compile has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                            compile: function (tElement, tAttrs, $transclude) {
                                                return function (scope, $element, attrs) {
                                                    var onloadExp = attrs['onload'] || '', autoScrollExp = attrs['autoscroll'], renderer = getRenderer(), inherited = $element.inheritedData('$uiView') || rootData, name = $interpolate(attrs['uiView'] || attrs['name'] || '')(scope) || '$default';
                                                    var previousEl, currentEl, currentScope, viewConfig;
                                                    var activeUIView = {
                            Severity: Major
                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                              Function Param has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var Param = /** @class */ (function () {
                                      function Param(id, type, location, urlConfig, state) {
                                          var config = getParamDeclaration(id, location, state);
                                          type = getType(config, type, location, id, urlConfig.paramTypes);
                                          var arrayMode = getArrayMode();
                              Severity: Major
                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                                Function StateRegistry has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    var StateRegistry = /** @class */ (function () {
                                        /** @internal */
                                        function StateRegistry(router) {
                                            this.router = router;
                                            this.states = {};
                                Severity: Major
                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                                  Function StateQueueManager has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var StateQueueManager = /** @class */ (function () {
                                          function StateQueueManager(router, states, builder, listeners) {
                                              this.router = router;
                                              this.states = states;
                                              this.builder = builder;
                                  Severity: Major
                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                                    Function ResolveContext has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        var ResolveContext = /** @class */ (function () {
                                            function ResolveContext(_path) {
                                                this._path = _path;
                                            }
                                            /** Gets all the tokens found in the resolve context, de-duplicated */
                                    Severity: Major
                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 3 hrs to fix

                                      Function StateBuilder has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var StateBuilder = /** @class */ (function () {
                                              function StateBuilder(matcher, urlMatcherFactory) {
                                                  this.matcher = matcher;
                                                  var self = this;
                                                  var root = function () { return matcher.find(''); };
                                      Severity: Major
                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                        Function Resolvable has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var Resolvable = /** @class */ (function () {
                                                function Resolvable(arg1, resolveFn, deps, policy, data) {
                                                    this.resolved = false;
                                                    this.promise = undefined;
                                                    if (arg1 instanceof Resolvable) {
                                        Severity: Major
                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

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

                                              var UrlRules = /** @class */ (function () {
                                                  /** @internal */
                                                  function UrlRules(/** @internal */ router) {
                                                      this.router = router;
                                                      /** @internal */ this._sortFn = defaultRuleSortFn;
                                          Severity: Major
                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                            Function UrlRuleFactory has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                var UrlRuleFactory = /** @class */ (function () {
                                                    function UrlRuleFactory(router) {
                                                        this.router = router;
                                                    }
                                                    UrlRuleFactory.prototype.compile = function (str) {
                                            Severity: Major
                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                              Function UrlService has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  var UrlService = /** @class */ (function () {
                                                      /** @internal */
                                                      function UrlService(/** @internal */ router) {
                                                          var _this = this;
                                                          this.router = router;
                                              Severity: Major
                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                Function TargetState has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    var TargetState = /** @class */ (function () {
                                                        /**
                                                         * The TargetState constructor
                                                         *
                                                         * Note: Do not construct a `TargetState` manually.
                                                Severity: Major
                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                  Function initDefaultTypes has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      function initDefaultTypes() {
                                                          var makeDefaultType = function (def) {
                                                              var valToString = function (val) { return (val != null ? val.toString() : val); };
                                                              var defaultTypeBase = {
                                                                  encode: valToString,
                                                  Severity: Major
                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                    Function UrlMatcher has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                            function UrlMatcher(pattern, paramTypes, paramFactory, config) {
                                                                var _this = this;
                                                                /** @internal */
                                                                this._cache = { path: [this] };
                                                                /** @internal */
                                                    Severity: Major
                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                      Function UrlRouter has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                          var UrlRouter = /** @class */ (function () {
                                                              /** @internal */
                                                              function UrlRouter(/** @internal */ router) {
                                                                  var _this = this;
                                                                  this.router = router;
                                                      Severity: Major
                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                        Function format has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                UrlMatcher.prototype.format = function (values) {
                                                                    if (values === void 0) { values = {}; }
                                                                    // Build the full path of UrlMatchers (including all parent UrlMatchers)
                                                                    var urlMatchers = this._cache.path;
                                                                    // Extract all the static segments and Params (processed as ParamDetails)
                                                        Severity: Major
                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                          Function UIRouter has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              var UIRouter = /** @class */ (function () {
                                                                  /**
                                                                   * Creates a new `UIRouter` object
                                                                   *
                                                                   * @param locationService a [[LocationServices]] implementation
                                                          Severity: Major
                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                            Function $ViewDirectiveFill has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                function $ViewDirectiveFill($compile, $controller, $transitions, $view, $q) {
                                                                    var getControllerAs = parse('viewDecl.controllerAs');
                                                                    var getResolveAs = parse('viewDecl.resolveAs');
                                                                    return {
                                                                        restrict: 'ECA',
                                                            Severity: Major
                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                              Function StateMatcher has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  var StateMatcher = /** @class */ (function () {
                                                                      function StateMatcher(_states) {
                                                                          this._states = _states;
                                                                      }
                                                                      StateMatcher.prototype.isRelative = function (stateName) {
                                                              Severity: Major
                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                                Function HookBuilder has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    var HookBuilder = /** @class */ (function () {
                                                                        function HookBuilder(transition) {
                                                                            this.transition = transition;
                                                                        }
                                                                        HookBuilder.prototype.buildHooksForPhase = function (phase) {
                                                                Severity: Major
                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                                  Function Ng1LocationServices has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      var Ng1LocationServices = /** @class */ (function () {
                                                                          function Ng1LocationServices($locationProvider) {
                                                                              // .onChange() registry
                                                                              this._urlListeners = [];
                                                                              this.$locationProvider = $locationProvider;
                                                                  Severity: Major
                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 2 hrs to fix

                                                                    Function Rejection has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        var Rejection = /** @class */ (function () {
                                                                            function Rejection(type, message, detail) {
                                                                                /** @internal */
                                                                                this.$id = id++;
                                                                                this.type = type;
                                                                    Severity: Minor
                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                      Function ArrayType has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          function ArrayType(type, mode) {
                                                                              var _this = this;
                                                                              // Wrap non-array value as array
                                                                              function arrayWrap(val) {
                                                                                  return isArray(val) ? val : isDefined(val) ? [val] : [];
                                                                      Severity: Minor
                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                StateQueueManager.prototype.flush = function () {
                                                                                    var _this = this;
                                                                                    var _a = this, queue = _a.queue, states = _a.states, builder = _a.builder;
                                                                                    var registered = [], // states that got registered
                                                                                    orphans = [], // states that don't yet have a parent registered
                                                                        Severity: Minor
                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                          Function compile has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                                      compile: function (tElement) {
                                                                                          var initial = tElement.html();
                                                                                          tElement.empty();
                                                                                          return function (scope, $element) {
                                                                                              var data = $element.data('$uiView');
                                                                          Severity: Minor
                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                            Function StateObject has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                var StateObject = /** @class */ (function () {
                                                                                    /** @deprecated use State.create() */
                                                                                    function StateObject(config) {
                                                                                        return StateObject.create(config || {});
                                                                                    }
                                                                            Severity: Minor
                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                              Function registerControllerCallbacks has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  function registerControllerCallbacks($q, $transitions, controllerInstance, $scope, cfg) {
                                                                                      // Call $onInit() ASAP
                                                                                      if (isFunction(controllerInstance.$onInit) &&
                                                                                          !((cfg.viewDecl.component || cfg.viewDecl.componentProvider) && hasComponentImpl)) {
                                                                                          controllerInstance.$onInit();
                                                                              Severity: Minor
                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                Function UrlRouterProvider has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                    var UrlRouterProvider = /** @class */ (function () {
                                                                                        /** @hidden */
                                                                                        function UrlRouterProvider(/** @hidden */ router) {
                                                                                            this.router = router;
                                                                                        }
                                                                                Severity: Minor
                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                      var Queue = /** @class */ (function () {
                                                                                          function Queue(_items, _limit) {
                                                                                              if (_items === void 0) { _items = []; }
                                                                                              if (_limit === void 0) { _limit = null; }
                                                                                              this._items = _items;
                                                                                  Severity: Minor
                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                            UrlMatcher.prototype.exec = function (path, search, hash, options) {
                                                                                                var _this = this;
                                                                                                if (search === void 0) { search = {}; }
                                                                                                var match = memoizeTo(this._cache, 'pattern', function () {
                                                                                                    return new RegExp([
                                                                                    Severity: Minor
                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                          var RegisteredHook = /** @class */ (function () {
                                                                                              function RegisteredHook(tranSvc, eventType, callback, matchCriteria, removeHookFromRegistry, options) {
                                                                                                  if (options === void 0) { options = {}; }
                                                                                                  this.tranSvc = tranSvc;
                                                                                                  this.eventType = eventType;
                                                                                      Severity: Minor
                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                StateService.prototype.transitionTo = function (to, toParams, options) {
                                                                                                    var _this = this;
                                                                                                    if (toParams === void 0) { toParams = {}; }
                                                                                                    if (options === void 0) { options = {}; }
                                                                                                    var router = this.router;
                                                                                        Severity: Minor
                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                              var ParamTypes = /** @class */ (function () {
                                                                                                  function ParamTypes() {
                                                                                                      this.enqueue = true;
                                                                                                      this.typeQueue = [];
                                                                                                      this.defaultTypes = pick(ParamTypes.prototype, [
                                                                                          Severity: Minor
                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                function resolvablesBuilder(state) {
                                                                                                    /** convert resolve: {} and resolvePolicy: {} objects to an array of tuples */
                                                                                                    var objects2Tuples = function (resolveObj, resolvePolicies) {
                                                                                                        return Object.keys(resolveObj || {}).map(function (token) { return ({
                                                                                                            token: token,
                                                                                            Severity: Minor
                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                              Function $StateRefDynamicDirective has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                      function $StateRefDynamicDirective($uiRouter, $timeout) {
                                                                                                          var $state = $uiRouter.stateService;
                                                                                                          return {
                                                                                                              restrict: 'A',
                                                                                                              require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
                                                                                              Severity: Minor
                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                    var PathNode = /** @class */ (function () {
                                                                                                        function PathNode(stateOrNode) {
                                                                                                            if (stateOrNode instanceof PathNode) {
                                                                                                                var node = stateOrNode;
                                                                                                                this.state = node.state;
                                                                                                Severity: Minor
                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                      var UrlMatcherFactory = /** @class */ (function () {
                                                                                                          // TODO: move implementations to UrlConfig (urlService.config)
                                                                                                          function UrlMatcherFactory(/** @internal */ router) {
                                                                                                              var _this = this;
                                                                                                              this.router = router;
                                                                                                  Severity: Minor
                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                        var BrowserLocationConfig = /** @class */ (function () {
                                                                                                            function BrowserLocationConfig(router, _isHtml5) {
                                                                                                                if (_isHtml5 === void 0) { _isHtml5 = false; }
                                                                                                                this._isHtml5 = _isHtml5;
                                                                                                                this._baseHref = undefined;
                                                                                                    Severity: Minor
                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                          var Ng1ViewConfig = /** @class */ (function () {
                                                                                                              function Ng1ViewConfig(path, viewDecl, factory) {
                                                                                                                  var _this = this;
                                                                                                                  this.path = path;
                                                                                                                  this.viewDecl = viewDecl;
                                                                                                      Severity: Minor
                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                UrlMatcher.compare = function (a, b) {
                                                                                                                    /**
                                                                                                                     * Turn a UrlMatcher and all its parent matchers into an array
                                                                                                                     * of slash literals '/', string literals, and Param objects
                                                                                                                     *
                                                                                                        Severity: Minor
                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                  function $StateRefDirective($uiRouter, $timeout) {
                                                                                                                      var $state = $uiRouter.stateService;
                                                                                                                      return {
                                                                                                                          restrict: 'A',
                                                                                                                          require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
                                                                                                          Severity: Minor
                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                            Function PushStateLocationService has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                var PushStateLocationService = /** @class */ (function (_super) {
                                                                                                                    __extends$2(PushStateLocationService, _super);
                                                                                                                    function PushStateLocationService(router) {
                                                                                                                        var _this = _super.call(this, router, true) || this;
                                                                                                                        _this._config = router.urlService.config;
                                                                                                            Severity: Minor
                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                              link: function (scope, element, attrs, uiSrefActive) {
                                                                                                                                  var type = getTypeInfo(element);
                                                                                                                                  var active = uiSrefActive[1] || uiSrefActive[0];
                                                                                                                                  var unlinkInfoFn = null;
                                                                                                                                  var hookFn;
                                                                                                              Severity: Minor
                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                        Transition.prototype.run = function () {
                                                                                                                            var _this = this;
                                                                                                                            var runAllHooks = TransitionHook.runAllHooks;
                                                                                                                            // Gets transition hooks array for the given phase
                                                                                                                            var getHooksFor = function (phase) { return _this._hookBuilder.buildHooksForPhase(phase); };
                                                                                                                Severity: Minor
                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                      var ParamType = /** @class */ (function () {
                                                                                                                          /**
                                                                                                                           * @param def  A configuration object which contains the custom type definition.  The object's
                                                                                                                           *        properties will override the default methods and/or pattern in `ParamType`'s public interface.
                                                                                                                           * @returns a new ParamType object
                                                                                                                  Severity: Minor
                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                            ViewService.prototype.sync = function () {
                                                                                                                                var _this = this;
                                                                                                                                var uiViewsByFqn = this._uiViews.map(function (uiv) { return [uiv.fqn, uiv]; }).reduce(applyPairs, {});
                                                                                                                                // Return a weighted depth value for a uiView.
                                                                                                                                // The depth is the nesting depth of ui-views (based on FQN; times 10,000)
                                                                                                                    Severity: Minor
                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                          function _equals(o1, o2) {
                                                                                                                              if (o1 === o2)
                                                                                                                                  return true;
                                                                                                                              if (o1 === null || o2 === null)
                                                                                                                                  return false;
                                                                                                                      Severity: Minor
                                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                        Function link has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                                        link: function (scope, element, attrs, uiSrefActive) {
                                                                                                                                            var type = getTypeInfo(element);
                                                                                                                                            var active = uiSrefActive[1] || uiSrefActive[0];
                                                                                                                                            var unlinkInfoFn = null;
                                                                                                                                            var rawDef = {};
                                                                                                                        Severity: Minor
                                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                          Function arrayTuples has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              function arrayTuples() {
                                                                                                                                  var args = [];
                                                                                                                                  for (var _i = 0; _i < arguments.length; _i++) {
                                                                                                                                      args[_i] = arguments[_i];
                                                                                                                                  }
                                                                                                                          Severity: Minor
                                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                            Function BaseLocationServices has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                var BaseLocationServices = /** @class */ (function () {
                                                                                                                                    function BaseLocationServices(router, fireAfterUpdate) {
                                                                                                                                        var _this = this;
                                                                                                                                        this.fireAfterUpdate = fireAfterUpdate;
                                                                                                                                        this._listeners = [];
                                                                                                                            Severity: Minor
                                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                              Function invokeHook has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                      TransitionHook.prototype.invokeHook = function () {
                                                                                                                                          var _this = this;
                                                                                                                                          var hook = this.registeredHook;
                                                                                                                                          if (hook._deregistered)
                                                                                                                                              return;
                                                                                                                              Severity: Minor
                                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                                        StateService.prototype._handleInvalidTargetState = function (fromPath, toState) {
                                                                                                                                            var _this = this;
                                                                                                                                            var fromState = PathUtils.makeTargetState(this.router.stateRegistry, fromPath);
                                                                                                                                            var globals = this.router.globals;
                                                                                                                                            var latestThing = function () { return globals.transitionHistory.peekTail(); };
                                                                                                                                Severity: Minor
                                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                                                          function updateView(config) {
                                                                                                                                                              var newScope = scope.$new();
                                                                                                                                                              var animEnter = $q.defer(), animLeave = $q.defer();
                                                                                                                                                              var $uiViewData = {
                                                                                                                                                                  $cfg: config,
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                                    Function ng1ViewsBuilder has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                        function ng1ViewsBuilder(state) {
                                                                                                                                            // Do not process root state
                                                                                                                                            if (!state.parent)
                                                                                                                                                return {};
                                                                                                                                            var tplKeys = ['templateProvider', 'templateUrl', 'template', 'notify', 'async'], ctrlKeys = ['controller', 'controllerProvider', 'controllerAs', 'resolveAs'], compKeys = ['component', 'bindings', 'componentProvider'], nonCompKeys = tplKeys.concat(ctrlKeys), allViewKeys = compKeys.concat(nonCompKeys);
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                                              HookBuilder.prototype.buildHooks = function (hookType) {
                                                                                                                                                  var transition = this.transition;
                                                                                                                                                  var treeChanges = transition.treeChanges();
                                                                                                                                                  // Find all the matching registered hooks for a given hook type
                                                                                                                                                  var matchingHooks = this.getMatchingHooks(hookType, treeChanges, transition);
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                                            var UIInjectorImpl = /** @class */ (function () {
                                                                                                                                                function UIInjectorImpl(context) {
                                                                                                                                                    this.context = context;
                                                                                                                                                    this.native = this.get(NATIVE_INJECTOR_TOKEN) || services.$injector;
                                                                                                                                                }
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                                          Function makeComponentTemplate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                  TemplateFactory.prototype.makeComponentTemplate = function (uiView, context, component, bindings) {
                                                                                                                                                      bindings = bindings || {};
                                                                                                                                                      // Bind once prefix
                                                                                                                                                      var prefix = ng.version.minor >= 3 ? '::' : '';
                                                                                                                                                      // Convert to kebob name. Add x- prefix if the string starts with `x-` or `data-`
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                                            Function TransitionEventType has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                                    function TransitionEventType(name, hookPhase, hookOrder, criteriaMatchPath, reverseSort, getResultHandler, getErrorHandler, synchronous) {
                                                                                                                                            Severity: Major
                                                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                                              Function _defineEvent has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                      TransitionService.prototype._defineEvent = function (name, hookPhase, hookOrder, criteriaMatchPath, reverseSort, getResultHandler, getErrorHandler, synchronous) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                Open

                                                                                                                                                            if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || el.attr('target'))) {
                                                                                                                                                                // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
                                                                                                                                                                var transition_1 = $timeout(function () {
                                                                                                                                                                    if (!el.attr('disabled')) {
                                                                                                                                                                        $state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

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

                                                                                                                                                          function $get($location, $browser, $window, $sniffer, $rootScope, $http, $templateCache) {
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 50 mins to fix

                                                                                                                                                    Function RegisteredHook has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                            function RegisteredHook(tranSvc, eventType, callback, matchCriteria, removeHookFromRegistry, options) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 45 mins to fix

                                                                                                                                                      Function $ViewDirectiveFill has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                          function $ViewDirectiveFill($compile, $controller, $transitions, $view, $q) {
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                        Function getType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            function getType(cfg, urlType, location, id, paramTypes) {
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                          Function clickHook has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                          Open

                                                                                                                                                              function clickHook(el, $state, $timeout, type, getDef) {
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                            Function _runtimeServices has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                    Ng1LocationServices.prototype._runtimeServices = function ($rootScope, $location, $sniffer, $browser, $window) {
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                              Function createProxyFunctions has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                              Open

                                                                                                                                                                  function createProxyFunctions(source, target, bind, fnNames, latebind) {
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                                Function Param has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                Open

                                                                                                                                                                        function Param(id, type, location, urlConfig, state) {
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                                  Function Resolvable has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                  Open

                                                                                                                                                                          function Resolvable(arg1, resolveFn, deps, policy, data) {
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                                    Function registerControllerCallbacks has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                    Open

                                                                                                                                                                        function registerControllerCallbacks($q, $transitions, controllerInstance, $scope, cfg) {
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 35 mins to fix

                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                      Open

                                                                                                                                                                                  return o1.getTime() === o2.getTime();
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                        Open

                                                                                                                                                                                return true;
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                          Open

                                                                                                                                                                                          return acc + encodeURIComponent(encoded);
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                            Open

                                                                                                                                                                                        return _arraysEq(o1, o2);
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                              Open

                                                                                                                                                                                                  return acc;
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                Open

                                                                                                                                                                                            return Param.equals(schema, Param.values(schema, params), this.params);
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                  Open

                                                                                                                                                                                                  return false;
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                    Open

                                                                                                                                                                                                    return handleError(Rejection.normalize(err));
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                      Open

                                                                                                                                                                                                  return false;
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                        Open

                                                                                                                                                                                                        return false;
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                          Open

                                                                                                                                                                                                      return true; // meh
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                return acc + encoded;
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                  return acc + map(encoded, UrlMatcher.encodeDashes).join('-');
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                Open

                                                                                                                                                                                                            return o1.toString() === o2.toString();
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                              return tuples.map(function (_a) {
                                                                                                                                                                                                                  var schema = _a[0], toVals = _a[1], fromVals = _a[2];
                                                                                                                                                                                                                  return Param.changed(schema, toVals, fromVals);
                                                                                                                                                                                                              }).reduce(unnestR, []);
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in myems-admin/js/ui-router/angular-ui-router.js - About 30 mins to fix

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var __extends = (undefined && undefined.__extends) || (function () {
                                                                                                                                                                                                            var extendStatics = function (d, b) {
                                                                                                                                                                                                                extendStatics = Object.setPrototypeOf ||
                                                                                                                                                                                                                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                                                                                                                                                                                                                    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8074..8086
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8102..8114

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 231.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var __extends$1 = (undefined && undefined.__extends) || (function () {
                                                                                                                                                                                                            var extendStatics = function (d, b) {
                                                                                                                                                                                                                extendStatics = Object.setPrototypeOf ||
                                                                                                                                                                                                                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                                                                                                                                                                                                                    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8040..8052
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8102..8114

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 231.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var __extends$2 = (undefined && undefined.__extends) || (function () {
                                                                                                                                                                                                            var extendStatics = function (d, b) {
                                                                                                                                                                                                                extendStatics = Object.setPrototypeOf ||
                                                                                                                                                                                                                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                                                                                                                                                                                                                    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 1 day to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8040..8052
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8074..8086

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 231.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
                                                                                                                                                                                                            for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
                                                                                                                                                                                                            for (var r = Array(s), k = 0, i = 0; i < il; i++)
                                                                                                                                                                                                                for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                                                                                                                                                                                                                    r[k] = a[j];
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 296..302

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 167.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var __spreadArrays$1 = (undefined && undefined.__spreadArrays) || function () {
                                                                                                                                                                                                            for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
                                                                                                                                                                                                            for (var r = Array(s), k = 0, i = 0; i < il; i++)
                                                                                                                                                                                                                for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                                                                                                                                                                                                                    r[k] = a[j];
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 28..34

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 167.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        (function (TransitionHookPhase) {
                                                                                                                                                                                                            TransitionHookPhase[TransitionHookPhase["CREATE"] = 0] = "CREATE";
                                                                                                                                                                                                            TransitionHookPhase[TransitionHookPhase["BEFORE"] = 1] = "BEFORE";
                                                                                                                                                                                                            TransitionHookPhase[TransitionHookPhase["RUN"] = 2] = "RUN";
                                                                                                                                                                                                            TransitionHookPhase[TransitionHookPhase["SUCCESS"] = 3] = "SUCCESS";
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1288..1294

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 124.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        (function (Category) {
                                                                                                                                                                                                            Category[Category["RESOLVE"] = 0] = "RESOLVE";
                                                                                                                                                                                                            Category[Category["TRANSITION"] = 1] = "TRANSITION";
                                                                                                                                                                                                            Category[Category["HOOK"] = 2] = "HOOK";
                                                                                                                                                                                                            Category[Category["UIVIEW"] = 3] = "UIVIEW";
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 3330..3336

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 124.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        function or(fn1, fn2) {
                                                                                                                                                                                                            return function () {
                                                                                                                                                                                                                var args = [];
                                                                                                                                                                                                                for (var _i = 0; _i < arguments.length; _i++) {
                                                                                                                                                                                                                    args[_i] = arguments[_i];
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 153..161

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 97.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        function and(fn1, fn2) {
                                                                                                                                                                                                            return function () {
                                                                                                                                                                                                                var args = [];
                                                                                                                                                                                                                for (var _i = 0; _i < arguments.length; _i++) {
                                                                                                                                                                                                                    args[_i] = arguments[_i];
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 166..174

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 97.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            TemplateFactory.prototype.fromProvider = function (provider, params, context) {
                                                                                                                                                                                                                var deps = services.$injector.annotate(provider);
                                                                                                                                                                                                                var providerFn = isArray(provider) ? tail(provider) : provider;
                                                                                                                                                                                                                var resolvable = new Resolvable('', providerFn, deps);
                                                                                                                                                                                                                return resolvable.get(context);
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8642..8647

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 91.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            TemplateFactory.prototype.fromComponentProvider = function (provider, params, context) {
                                                                                                                                                                                                                var deps = services.$injector.annotate(provider);
                                                                                                                                                                                                                var providerFn = isArray(provider) ? tail(provider) : provider;
                                                                                                                                                                                                                var resolvable = new Resolvable('', providerFn, deps);
                                                                                                                                                                                                                return resolvable.get(context);
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8629..8634

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 91.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        function update() {
                                                                                                                                                                                                                            var def = getDef();
                                                                                                                                                                                                                            if (unlinkInfoFn)
                                                                                                                                                                                                                                unlinkInfoFn();
                                                                                                                                                                                                                            if (active)
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9503..9511

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 88.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        function update() {
                                                                                                                                                                                                                            var def = getDef();
                                                                                                                                                                                                                            if (unlinkInfoFn)
                                                                                                                                                                                                                                unlinkInfoFn();
                                                                                                                                                                                                                            if (active)
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9632..9640

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 88.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.enable = function () {
                                                                                                                                                                                                                var categories = [];
                                                                                                                                                                                                                for (var _i = 0; _i < arguments.length; _i++) {
                                                                                                                                                                                                                    categories[_i] = arguments[_i];
                                                                                                                                                                                                                }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1326..1332

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.disable = function () {
                                                                                                                                                                                                                var categories = [];
                                                                                                                                                                                                                for (var _i = 0; _i < arguments.length; _i++) {
                                                                                                                                                                                                                    categories[_i] = arguments[_i];
                                                                                                                                                                                                                }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1319..1325

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 81.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.traceTransitionStart = function (trans) {
                                                                                                                                                                                                                if (!this.enabled(exports.Category.TRANSITION))
                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                safeConsole.log(transLbl(trans) + ": Started  -> " + stringify(trans));
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1352..1356

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.traceTransitionIgnored = function (trans) {
                                                                                                                                                                                                                if (!this.enabled(exports.Category.TRANSITION))
                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                safeConsole.log(transLbl(trans) + ": Ignored  <> " + stringify(trans));
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1346..1350

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 75.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            StateService.prototype.onInvalid = function (callback) {
                                                                                                                                                                                                                this.invalidCallbacks.push(callback);
                                                                                                                                                                                                                return function deregisterListener() {
                                                                                                                                                                                                                    removeFrom(this.invalidCallbacks)(callback);
                                                                                                                                                                                                                }.bind(this);
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 3233..3238

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 73.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            StateRegistry.prototype.onStatesChanged = function (listener) {
                                                                                                                                                                                                                this.listeners.push(listener);
                                                                                                                                                                                                                return function deregisterListener() {
                                                                                                                                                                                                                    removeFrom(this.listeners)(listener);
                                                                                                                                                                                                                }.bind(this);
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7412..7417

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 73.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.traceViewServiceEvent = function (event, viewConfig) {
                                                                                                                                                                                                                if (!this.enabled(exports.Category.VIEWCONFIG))
                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                safeConsole.log("VIEWCONFIG: " + event + " " + viewConfigString(viewConfig));
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1437..1441

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Trace.prototype.traceViewServiceUIViewEvent = function (event, viewData) {
                                                                                                                                                                                                                if (!this.enabled(exports.Category.VIEWCONFIG))
                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                safeConsole.log("VIEWCONFIG: " + event + " " + uiViewString(viewData));
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1431..1435

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 71.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                pathType.decode = function (x) {
                                                                                                                                                                                                                    return x != null ? x.toString().replace(/(~~|~2F)/g, function (m) { return ({ '~~': '~', '~2F': '/' }[m]); }) : x;
                                                                                                                                                                                                                };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8917..8919

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 70.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                pathType.encode = function (x) {
                                                                                                                                                                                                                    return x != null ? x.toString().replace(/(~|\/)/g, function (m) { return ({ '~': '~~', '/': '~2F' }[m]); }) : x;
                                                                                                                                                                                                                };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8920..8922

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 70.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            PushStateLocationService.prototype.dispose = function (router) {
                                                                                                                                                                                                                _super.prototype.dispose.call(this, router);
                                                                                                                                                                                                                root.removeEventListener('popstate', this._listener);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8067..8070

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 57.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                extend(this, { id: id, type: type, location: location, isOptional: isOptional, dynamic: dynamic, raw: raw, squash: squash, replace: replace, inherit: inherit, array: arrayMode, config: config });
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-web/src/components/chat/ChatProvider.js on lines 34..46

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 57.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            HashLocationService.prototype.dispose = function (router) {
                                                                                                                                                                                                                _super.prototype.dispose.call(this, router);
                                                                                                                                                                                                                root.removeEventListener('hashchange', this._listener);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8168..8171

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 57.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Object.defineProperty(StateService.prototype, "current", {
                                                                                                                                                                                                                /**
                                                                                                                                                                                                                 * The current [[StateDeclaration]]
                                                                                                                                                                                                                 *
                                                                                                                                                                                                                 * @deprecated This is a passthrough through to [[UIRouterGlobals.current]]
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 5368..5375
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7292..7303
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7304..7315

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Object.defineProperty(StateService.prototype, "params", {
                                                                                                                                                                                                                /**
                                                                                                                                                                                                                 * The latest successful state parameters
                                                                                                                                                                                                                 *
                                                                                                                                                                                                                 * @deprecated This is a passthrough through to [[UIRouterGlobals.params]]
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 5368..5375
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7292..7303
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7316..7327

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Object.defineProperty(UrlRouter.prototype, "interceptDeferred", {
                                                                                                                                                                                                                /** @deprecated use [[UrlService.interceptDeferred]]*/
                                                                                                                                                                                                                get: function () {
                                                                                                                                                                                                                    return this.router.urlService.interceptDeferred;
                                                                                                                                                                                                                },
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7292..7303
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7304..7315
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7316..7327

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Object.defineProperty(StateService.prototype, "transition", {
                                                                                                                                                                                                                /**
                                                                                                                                                                                                                 * The [[Transition]] currently in progress (or null)
                                                                                                                                                                                                                 *
                                                                                                                                                                                                                 * @deprecated This is a passthrough through to [[UIRouterGlobals.transition]]
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 5368..5375
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7304..7315
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 7316..7327

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var all = function (fn1) { return function (arr) { return arr.reduce(function (b, x) { return b && !!fn1(x); }, true); }; };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 183..183

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            for (var _i = 0, events_1 = events; _i < events_1.length; _i++) {
                                                                                                                                                                                                                var event_1 = events_1[_i];
                                                                                                                                                                                                                element[on](event_1, hookFn);
                                                                                                                                                                                                            }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9346..9349

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var any = function (fn1) { return function (arr) { return arr.reduce(function (b, x) { return b || !!fn1(x); }, false); }; };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 181..181

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                for (var _i = 0, events_2 = events; _i < events_2.length; _i++) {
                                                                                                                                                                                                                    var event_2 = events_2[_i];
                                                                                                                                                                                                                    element[off](event_2, hookFn);
                                                                                                                                                                                                                }
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9340..9343

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 55.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            ParamFactory.prototype.fromConfig = function (id, type, state) {
                                                                                                                                                                                                                return new Param(id, type, exports.DefType.CONFIG, this.router.urlService.config, state);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4979..4981
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4982..4984

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 54.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            ParamFactory.prototype.fromPath = function (id, type, state) {
                                                                                                                                                                                                                return new Param(id, type, exports.DefType.PATH, this.router.urlService.config, state);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4976..4978
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4982..4984

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 54.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            ParamFactory.prototype.fromSearch = function (id, type, state) {
                                                                                                                                                                                                                return new Param(id, type, exports.DefType.SEARCH, this.router.urlService.config, state);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 2 other locations - About 55 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4976..4978
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4979..4981

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 54.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Transition.prototype.retained = function () {
                                                                                                                                                                                                                return map(this._treeChanges.retained, prop('state')).map(stateSelf);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4169..4171

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 52.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Transition.prototype.entering = function () {
                                                                                                                                                                                                                return map(this._treeChanges.entering, prop('state')).map(stateSelf);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 4186..4188

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 52.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                var asComponent = function (result) { return services.$q.when(result).then(function (str) { return ({ component: str }); }); };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8572..8572

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                var asTemplate = function (result) { return services.$q.when(result).then(function (str) { return ({ template: str }); }); };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 8573..8573

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 51.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var registerLazyLoadHook = function (transitionService) {
                                                                                                                                                                                                            return transitionService.onBefore({ entering: function (state) { return !!state.lazyLoad; } }, lazyLoadHook);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6662..6664
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6689..6691
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6702..6704

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var registerRedirectToHook = function (transitionService) {
                                                                                                                                                                                                            return transitionService.onStart({ to: function (state) { return !!state.redirectTo; } }, redirectToHook);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6689..6691
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6702..6704
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6918..6920

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var registerOnExitHook = function (transitionService) {
                                                                                                                                                                                                            return transitionService.onExit({ exiting: function (state) { return !!state.onExit; } }, onExitHook);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6662..6664
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6702..6704
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6918..6920

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var registerOnRetainHook = function (transitionService) {
                                                                                                                                                                                                            return transitionService.onRetain({ retained: function (state) { return !!state.onRetain; } }, onRetainHook);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6662..6664
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6689..6691
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6918..6920

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            UrlConfig.prototype.strictMode = function (value) {
                                                                                                                                                                                                                return (this._isStrictMode = isDefined(value) ? value : this._isStrictMode);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6105..6107

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            UrlConfig.prototype.caseInsensitive = function (value) {
                                                                                                                                                                                                                return (this._isCaseInsensitive = isDefined(value) ? value : this._isCaseInsensitive);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6142..6144

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var eagerResolvePath = function (trans) {
                                                                                                                                                                                                            return new ResolveContext(trans.treeChanges().to).resolvePath('EAGER', trans).then(noop);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6760..6762

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        var resolveRemaining = function (trans) {
                                                                                                                                                                                                            return new ResolveContext(trans.treeChanges().to).resolvePath('LAZY', trans).then(noop);
                                                                                                                                                                                                        };
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 6729..6731

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 50.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            return "[ui-view#" + uiview.id + " " + uiview.$type + ":" + uiview.fqn + " (" + uiview.name + "@" + state + ")]";
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                    myems-admin/js/plugins/colorpicker/bootstrap-colorpicker-module.js on lines 100..100

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 49.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        function $IncludedByStateFilter($state) {
                                                                                                                                                                                                            var includesFilter = function (state, params, options) {
                                                                                                                                                                                                                return $state.includes(state, params, options);
                                                                                                                                                                                                            };
                                                                                                                                                                                                            includesFilter.$stateful = true;
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9894..9900

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 46.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                        function $IsStateFilter($state) {
                                                                                                                                                                                                            var isFilter = function (state, params, options) {
                                                                                                                                                                                                                return $state.is(state, params, options);
                                                                                                                                                                                                            };
                                                                                                                                                                                                            isFilter.$stateful = true;
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 9912..9918

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 46.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Rejection.errored = function (detail) {
                                                                                                                                                                                                                var message = 'The transition errored';
                                                                                                                                                                                                                return new Rejection(exports.RejectType.ERROR, message, detail);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1017..1020
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1022..1025
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1027..1030

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 45.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Rejection.ignored = function (detail) {
                                                                                                                                                                                                                var message = 'The transition was ignored';
                                                                                                                                                                                                                return new Rejection(exports.RejectType.IGNORED, message, detail);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1017..1020
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1027..1030
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1032..1035

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 45.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Rejection.invalid = function (detail) {
                                                                                                                                                                                                                var message = 'This transition is invalid';
                                                                                                                                                                                                                return new Rejection(exports.RejectType.INVALID, message, detail);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1022..1025
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1027..1030
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1032..1035

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 45.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                            Rejection.aborted = function (detail) {
                                                                                                                                                                                                                var message = 'The transition has been aborted';
                                                                                                                                                                                                                return new Rejection(exports.RejectType.ABORTED, message, detail);
                                                                                                                                                                                                            };
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in myems-admin/js/ui-router/angular-ui-router.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1017..1020
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1022..1025
                                                                                                                                                                                                    myems-admin/js/ui-router/angular-ui-router.js on lines 1032..1035

                                                                                                                                                                                                    Duplicated Code

                                                                                                                                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                    Tuning

                                                                                                                                                                                                    This issue has a mass of 45.

                                                                                                                                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                    Refactorings

                                                                                                                                                                                                    Further Reading

                                                                                                                                                                                                    There are no issues that match your filters.

                                                                                                                                                                                                    Category
                                                                                                                                                                                                    Status