Showing 16 of 16 total issues
Unintended read access in kramdown gem Open
kramdown (1.13.2)
- Read upRead up
- Exclude checks
Advisory: CVE-2020-14001
Criticality: Critical
URL: https://github.com/advisories/GHSA-mqm2-cgpr-p4m6
Solution: upgrade to >= 2.3.0
Regular Expression Denial of Service in Addressable templates Open
addressable (2.5.0)
- Read upRead up
- Exclude checks
Advisory: CVE-2021-32740
Criticality: High
URL: https://github.com/advisories/GHSA-jxhc-q857-3j6g
Solution: upgrade to >= 2.8.0
Jekyll _config.yml privilege escalation Open
jekyll (3.3.1)
- Read upRead up
- Exclude checks
Advisory: CVE-2018-17567
Criticality: High
URL: https://jekyllrb.com/news/2018/09/19/security-fixes-for-3-6-3-7-3-8/
Solution: upgrade to ~> 3.6.3, ~> 3.7.4, >= 3.8.4
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
*/
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
*/
Function stemmer
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
}, t.stemmer = function() {
var t = {
ational: "ate",
tional: "tion",
enci: "ence",
Function stemmer
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
}, t.stemmer = function() {
var t = {
ational: "ate",
tional: "tion",
enci: "ence",
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) {
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) {
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);
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);
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;
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;
ruby-ffi DDL loading issue on Windows OS Open
ffi (1.9.17)
- Read upRead up
- Exclude checks
Advisory: CVE-2018-1000201
Criticality: High
URL: https://github.com/ffi/ffi/releases/tag/1.9.24
Solution: upgrade to >= 1.9.24
Function hasScrolled
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function hasScrolled() {
var st = $(this).scrollTop();
// Make sure they scroll more than delta
if (Math.abs(lastScrollTop - st) <= delta)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function hasScrolled
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function hasScrolled() {
var st = $(this).scrollTop();
// Make sure they scroll more than delta
if (Math.abs(lastScrollTop - st) <= delta)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"