Showing 60 of 98 total issues
File bootstrap.js
has 1517 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ===================================================
* bootstrap-transition.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#transitions
* ===================================================
* Copyright 2013 Twitter, Inc.
File privly-0.1.2.js
has 433 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
Open Source Initiative OSI - The MIT License (MIT):Licensing
[OSI Approved License]
The MIT License (MIT)
File privly.js
has 418 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
Open Source Initiative OSI - The MIT License (MIT):Licensing
[OSI Approved License]
The MIT License (MIT)
File privly-0.1.3.js
has 418 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*******************************************************************************
Open Source Initiative OSI - The MIT License (MIT):Licensing
[OSI Approved License]
The MIT License (MIT)
Function processLink
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
processLink: function(anchorElement)
{
"use strict";
// Don't process editable links
- 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 processLink
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
processLink: function(anchorElement)
{
"use strict";
// Don't process editable links
Function correctIndirection
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
correctIndirection: function()
{
"use strict";
var anchors = document.links;
var i = anchors.length;
- 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 correctIndirection
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
correctIndirection: function()
{
"use strict";
var anchors = document.links;
var i = anchors.length;
- 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 correctIndirection
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
correctIndirection: function()
{
"use strict";
var anchors = document.links;
var i = anchors.length;
- 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 slide
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
, slide: function (type, next) {
var $active = this.$element.find('.item.active')
, $next = next || $active[type]()
, isCycling = this.interval
, direction = type == 'next' ? 'left' : 'right'
Function createLinks
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
createLinks: function()
{
/*************************************************************************
Inspired by Linkify script:
http://downloads.mozdev.org/greasemonkey/linkify.user.js
- 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 createLinks
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script:
- 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 createLinks
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script:
- 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 createLinks
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script:
- 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 show
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
, show: function () {
var $tip
, pos
, actualWidth
, actualHeight
Consider simplifying this complex logical expression. Open
if (!exclude && privlyExcludeUndefined) {
var passive = this.extensionMode === privly.extensionModeEnum.PASSIVE ||
params.passive !== undefined || params.privlyPassive !== undefined ||
!whitelist || privly.nextAvailableFrameID > 39;
Function replaceLink
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
replaceLink: function(object)
{
"use strict";
var iFrame = document.createElement('iframe');
Function createLinks
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script:
Function createLinks
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script:
Function createLinks
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
createLinks: function()
{
"use strict";
/***********************************************************************
Inspired by Linkify script: