lavkumarv/feature-blog-jekyll

View on GitHub
_site/js/lunr.min.js

Summary

Maintainability
D
1 day
Test Coverage

File lunr.min.js has 475 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.2
 * Copyright (C) 2016 Oliver Nightingale
 * @license MIT
 */
Severity: Minor
Found in _site/js/lunr.min.js - About 7 hrs to fix

    Function stemmer has 96 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            }, t.stemmer = function() {
                var t = {
                        ational: "ate",
                        tional: "tion",
                        enci: "ence",
    Severity: Major
    Found in _site/js/lunr.min.js - About 3 hrs to fix

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

              }, t.Index.prototype.search = function(e) {
                  var n = this.pipeline.run(this.tokenizerFn(e)),
                      i = new t.Vector,
                      r = [],
                      o = this._fields.reduce(function(t, e) {
      Severity: Minor
      Found in _site/js/lunr.min.js - About 1 hr to fix

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

                        T = function(n) {
                            var i, r, o, s, a, h, u;
                            if (n.length < 3) return n;
                            if (o = n.substr(0, 1), "y" == o && (n = o.toUpperCase() + n.substr(1)), s = p, a = v, s.test(n) ? n = n.replace(s, "$1$2") : a.test(n) && (n = n.replace(a, "$1$2")), s = g, a = m, s.test(n)) {
                                var T = s.exec(n);
        Severity: Minor
        Found in _site/js/lunr.min.js - About 1 hr to fix

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

                  }, t.Index.prototype.add = function(e, n) {
                      var i = {},
                          r = new t.SortedSet,
                          o = e[this._ref],
                          n = void 0 === n ? !0 : n;
          Severity: Minor
          Found in _site/js/lunr.min.js - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status