darkwallet/darkwallet

View on GitHub

Showing 511 of 903 total issues

File mixer.js has 459 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

define(['backend/port', 'util/protocol', 'bitcoinjs-lib', 'util/coinjoin', 'sjcl', 'util/stealth'],
function(Port, Protocol, Bitcoin, CoinJoin, sjcl, Stealth) {

Severity: Minor
Found in src/js/backend/services/mixer.js - About 7 hrs to fix

    File send.js has 458 lines of code (exceeds 250 allowed). Consider refactoring.
    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',
    Severity: Minor
    Found in src/js/frontend/controllers/send.js - About 7 hrs to fix

      Function 25 has 170 lines of code (exceeds 25 allowed). Consider refactoring.
      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"));
      Severity: Major
      Found in src/vendors/crypto-js/cryptojs.js - About 6 hrs to fix

        Function 14 has 150 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"buffer":46}],14:[function(require,module,exports){
        (function (Buffer){
        
        module.exports = ripemd160
        
        
        Severity: Major
        Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 6 hrs to fix

          File qrcode.js has 416 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @fileoverview
           * - Using the 'QRCode for Javascript library'
           * - Fixed dataset of 'QRCode for Javascript library' for support full-spec.
           * - this library has no dependencies.
          Severity: Minor
          Found in src/vendors/qrcodejs/qrcode.js - About 6 hrs to fix

            Function 1 has 147 lines of code (exceeds 25 allowed). Consider refactoring.
            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"));
            Severity: Major
            Found in src/vendors/crypto-js/cryptojs.js - About 5 hrs to fix

              File history.js has 409 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * @fileOverview HistoryProvider angular provider
               */
              'use strict';
              
              
              Severity: Minor
              Found in src/js/frontend/providers/history.js - About 5 hrs to fix

                Function BitMatrixParser has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function BitMatrixParser(bitMatrix)
                {
                    var dimension = bitMatrix.Dimension;
                    if (dimension < 21 || (dimension & 0x03) != 1)
                    {
                Severity: Major
                Found in src/vendors/jsqrcode/jsqrcode.js - About 5 hrs to fix

                  Function createHttpBackendMock has 141 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function createHttpBackendMock($rootScope, $delegate, $browser) {
                    var definitions = [],
                        expectations = [],
                        responses = [],
                        responsesPush = angular.bind(responses, responses.push),
                  Severity: Major
                  Found in src/vendors/angular-mocks/angular-mocks.js - About 5 hrs to fix

                    File wallet.js has 400 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    'use strict';
                    
                    define(['util/stealth', 'bitcoinjs-lib', 'model/multisig', 'model/pockets', 'util/btc', 'model/output'],
                    function(Stealth, Bitcoin, MultisigFunds, Pockets, BtcUtils, Output) {
                    /**
                    Severity: Minor
                    Found in src/js/model/wallet.js - About 5 hrs to fix

                      Function ReedSolomonDecoder has 133 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function ReedSolomonDecoder(field)
                      {
                          this.field = field;
                          this.decode=function(received,  twoS)
                          {
                      Severity: Major
                      Found in src/vendors/jsqrcode/jsqrcode.js - About 5 hrs to fix

                        Function $get has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    '$timeout', function ($document, $window, $compile, $rootScope, $timeout) {
                                    var count = this.count,
                                        height = this.height,
                                        color = this.color,
                                        $scope = $rootScope,
                        Severity: Major
                        Found in src/vendors/ngprogress/build/ngProgress.js - About 5 hrs to fix

                          Function 28 has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                          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')
                          
                          
                          Severity: Major
                          Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 5 hrs to fix

                            Function _doProcessBlock has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        _doProcessBlock: function (M, offset) {
                                            // Shortcuts
                                            var H = this._hash.words;
                            
                                            var H0 = H[0];
                            Severity: Major
                            Found in src/vendors/crypto-js/cryptojs.js - About 5 hrs to fix

                              Function PNGlib has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  window.PNGlib = function(width,height,depth) {
                              
                                      this.width   = width;
                                      this.height  = height;
                                      this.depth   = depth;
                              Severity: Major
                              Found in src/vendors/identicon/pnglib.js - About 4 hrs to fix

                                File wallet.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*
                                 * @fileOverview Background service running for the wallet
                                 */
                                'use strict';
                                
                                
                                Severity: Minor
                                Found in src/js/backend/services/wallet.js - About 4 hrs to fix

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

                                  },{"./core":3,"./sha256":28}],28:[function(require,module,exports){
                                  ;(function (root, factory) {
                                      if (typeof exports === "object") {
                                          // CommonJS
                                          module.exports = exports = factory(require("./core"));
                                  Severity: Major
                                  Found in src/vendors/crypto-js/cryptojs.js - About 4 hrs to fix

                                    Function 11 has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                                    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.
                                    Severity: Major
                                    Found in src/vendors/bitcoinjs-lib/bitcoinjs.js - About 4 hrs to fix

                                      Function 23 has 119 lines of code (exceeds 25 allowed). Consider refactoring.
                                      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"));
                                      Severity: Major
                                      Found in src/vendors/crypto-js/cryptojs.js - About 4 hrs to fix

                                        File catchan.js has 364 lines of code (exceeds 250 allowed). Consider refactoring.
                                        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) {
                                        
                                        
                                        Severity: Minor
                                        Found in src/js/backend/channels/catchan.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language