Showing 511 of 903 total issues
File mixer.js
has 459 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
define(['backend/port', 'util/protocol', 'bitcoinjs-lib', 'util/coinjoin', 'sjcl', 'util/stealth'],
function(Port, Protocol, Bitcoin, CoinJoin, sjcl, Stealth) {
File send.js
has 458 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
define(['./module', 'frontend/port', 'darkwallet', 'util/btc', 'dwutil/currencyformat', 'bitcoinjs-lib', 'dwutil/pcodeutils'],
function (controllers, Port, DarkWallet, BtcUtils, CurrencyFormat, Bitcoin, PCodeUtils) {
controllers.controller('WalletSendCtrl', ['$scope', '$window', 'notify', 'modals', '$wallet', '$timeout', '$history', '$tabs', '_Filter',
Function 25
has 170 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./cipher-core":2,"./core":3,"./enc-base64":4,"./evpkdf":6,"./md5":10}],25:[function(require,module,exports){
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"));
Function 14
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"buffer":46}],14:[function(require,module,exports){
(function (Buffer){
module.exports = ripemd160
File qrcode.js
has 416 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @fileoverview
* - Using the 'QRCode for Javascript library'
* - Fixed dataset of 'QRCode for Javascript library' for support full-spec.
* - this library has no dependencies.
Function 1
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.CryptoJS=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
;(function (root, factory, undef) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core"));
File history.js
has 409 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @fileOverview HistoryProvider angular provider
*/
'use strict';
Function BitMatrixParser
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BitMatrixParser(bitMatrix)
{
var dimension = bitMatrix.Dimension;
if (dimension < 21 || (dimension & 0x03) != 1)
{
Function createHttpBackendMock
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createHttpBackendMock($rootScope, $delegate, $browser) {
var definitions = [],
expectations = [],
responses = [],
responsesPush = angular.bind(responses, responses.push),
File wallet.js
has 400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
define(['util/stealth', 'bitcoinjs-lib', 'model/multisig', 'model/pockets', 'util/btc', 'model/output'],
function(Stealth, Bitcoin, MultisigFunds, Pockets, BtcUtils, Output) {
/**
Function ReedSolomonDecoder
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReedSolomonDecoder(field)
{
this.field = field;
this.decode=function(received, twoS)
{
Function $get
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'$timeout', function ($document, $window, $compile, $rootScope, $timeout) {
var count = this.count,
height = this.height,
color = this.color,
$scope = $rootScope,
Function 28
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./networks":36,"./scripts":39,"./types":42,"assert":44,"bs58check":6,"buffer":46}],28:[function(require,module,exports){
(function (Buffer){
var assert = require('assert')
var opcodes = require('./opcodes')
Function _doProcessBlock
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_doProcessBlock: function (M, offset) {
// Shortcuts
var H = this._hash.words;
var H0 = H[0];
Function PNGlib
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.PNGlib = function(width,height,depth) {
this.width = width;
this.height = height;
this.depth = depth;
File wallet.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* @fileOverview Background service running for the wallet
*/
'use strict';
Function 28
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./core":3,"./sha256":28}],28:[function(require,module,exports){
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"));
Function 11
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./create-hash":7,"./create-hmac":8,"./pbkdf2":20,"./rng":21,"buffer":46}],11:[function(require,module,exports){
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
Function 23
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./cipher-core":2,"./core":3,"./enc-base64":4,"./evpkdf":6,"./md5":10}],23:[function(require,module,exports){
;(function (root, factory, undef) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core"));
File catchan.js
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
define(['bitcoinjs-lib', 'util/djbec', 'util/encryption', 'util/protocol', 'backend/channels/peer', 'backend/channels/utils', 'backend/port'],
function (Bitcoin, Curve25519, Encryption, Protocol, Peer, ChannelUtils, Port) {