darkwallet/darkwallet

View on GitHub
src/js/backend/services/wallet.js

Summary

Maintainability
D
2 days
Test Coverage

Function WalletService has 364 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function WalletService(core) {
    var keyRing = new IdentityKeyRing();
    var self = this;
    this.name = 'wallet';
    var heightTimeout;
Severity: Major
Found in src/js/backend/services/wallet.js - About 1 day 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 mixTransaction has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          this.mixTransaction = function(newTx, metadata, password, callback) {
              var identity = self.getCurrentIdentity();
              var task = {tx: newTx.toHex(),
                          state: 'announce',
                          total: metadata.total,
      Severity: Minor
      Found in src/js/backend/services/wallet.js - About 2 hrs to fix

        Function notifyRow has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var notifyRow = function(walletAddress, row, height) {
                var identity = core.getCurrentIdentity();
                var title;
                var value = row.total;
        
        
        Severity: Minor
        Found in src/js/backend/services/wallet.js - About 1 hr to fix

          Function createIdentity has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              this.createIdentity = function(name, network, secret, password, callback) {
          Severity: Minor
          Found in src/js/backend/services/wallet.js - About 35 mins to fix

            Function signTransaction has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                this.signTransaction = function(newTx, metadata, password, callback, broadcast) {
            Severity: Minor
            Found in src/js/backend/services/wallet.js - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status