Showing 511 of 903 total issues
Function 3
has 256 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./core":3}],3:[function(require,module,exports){
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory();
Function 43
has 254 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"buffer":46}],43:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var bufferutils = require('./bufferutils')
var crypto = require('crypto')
Function Detector
has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring. Open
Open
function Detector(image)
{
this.image=image;
this.resultPointCallback = null;
- 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 QRCodeDataBlockReader
has 245 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode)
{
this.blockPointer = 0;
this.bitPointer = 7;
this.dataLength = 0;
Function 40
has 242 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./ecsignature":33,"./opcodes":37,"./script":38,"./types":42,"assert":44,"buffer":46,"ecurve":24}],40:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var bufferutils = require('./bufferutils')
var crypto = require('./crypto')
Function CryptoJS
has 241 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CryptoJS = CryptoJS || (function (Math, undefined) {
/**
* CryptoJS namespace.
*/
var C = {};
Function 31
has 232 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./core":3,"./sha512":31,"./x64-core":33}],31:[function(require,module,exports){
;(function (root, factory, undef) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"), require("./x64-core"));
Function Detector
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Detector(image)
{
this.image=image;
this.resultPointCallback = null;
Function 44
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./address":27,"./bufferutils":28,"./hdnode":34,"./networks":36,"./script":38,"./transaction_builder":41,"./types":42,"assert":44,"buffer":46,"crypto":10}],44:[function(require,module,exports){
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
//
Function 19
has 200 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"util":68}],19:[function(require,module,exports){
var inherits = require('util').inherits
module.exports = function (Buffer, Hash) {
var K = [
Function 29
has 198 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./core":3}],29:[function(require,module,exports){
;(function (root, factory, undef) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"), require("./x64-core"));
Function ReedSolomonDecoder
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
Open
function ReedSolomonDecoder(field)
{
this.field = field;
this.decode=function(received, twoS)
{
- 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 exports
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (Buffer, Hash) {
var K = [
0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
Function 39
has 196 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./bufferutils":28,"./crypto":29,"./opcodes":37,"./types":42,"assert":44,"buffer":46}],39:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var enforceType = require('./types')
var ops = require('./opcodes')
Function 41
has 193 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./address":27,"./bufferutils":28,"./crypto":29,"./ecsignature":33,"./opcodes":37,"./script":38,"./scripts":39,"./types":42,"assert":44,"buffer":46}],41:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var scripts = require('./scripts')
Function 34
has 192 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./types":42,"assert":44,"bigi":3,"buffer":46}],34:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var base58check = require('bs58check')
var crypto = require('./crypto')
Function GF256Poly
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function GF256Poly(field, coefficients)
{
if (coefficients == null || coefficients.length == 0)
{
throw "System.ArgumentException";
Function 10
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./core":3}],10:[function(require,module,exports){
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"));
Function AlignmentPatternFinder
has 180 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AlignmentPatternFinder( image, startX, startY, width, height, moduleSize, resultPointCallback)
{
this.image = image;
this.possibleCenters = new Array();
this.startX = startX;
Function 26
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./curve":22,"./curves":23,"bigi":3}],26:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var BigInteger = require('bigi')