yoichiro/chromeos-filesystem-cifs

View on GitHub

Showing 138 of 360 total issues

File client_impl.js has 1072 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(Smb2,
          Constants,
          Debug,
          Protocol,
          Packet,
Severity: Major
Found in app/scripts/smb_client/smb2/client_impl.js - About 2 days to fix

    File client_impl.js has 1000 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function(Smb1, Constants, Debug, Protocol, Packet, BinaryUtils) {
        "use strict";
    
        // Constructor
    
    
    Severity: Major
    Found in app/scripts/smb_client/smb1/client_impl.js - About 2 days to fix

      File cifs_fs.js has 798 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function(Debug) {
      
          "use strict";
      
          // Constructor
      Severity: Major
      Found in app/scripts/cifs_fs.js - About 1 day to fix

        Function exports has 330 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function (grunt) {
        
            require('load-grunt-tasks')(grunt);
            require('time-grunt')(grunt);
        
        
        Severity: Major
        Found in Gruntfile.js - About 1 day to fix

          File protocol.js has 559 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          (function(Smb1,
                    Constants,
                    Packet,
                    Header,
                    Types,
          Severity: Major
          Found in app/scripts/smb_client/smb1/protocol.js - About 1 day to fix

            File window.js has 501 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            "use strict";
            
            (function() {
            
                var onLoad = function() {
            Severity: Major
            Found in app/scripts/window.js - About 1 day to fix

              File protocol.js has 439 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              (function(Smb2,
                        Constants,
                        Packet,
                        Header,
                        Types,
              Severity: Minor
              Found in app/scripts/smb_client/smb2/protocol.js - About 6 hrs to fix

                File constants.js has 429 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                (function() {
                
                    "use strict";
                
                    // Constructor
                Severity: Minor
                Found in app/scripts/smb_client/constants.js - About 6 hrs to fix

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

                      Debug.getNtStatusMessage = function(code) {
                          switch (code) {
                          case Constants.NT_STATUS_OK:
                              return "NT_STATUS_OK";
                          case Constants.NT_STATUS_OK:
                  Severity: Major
                  Found in app/scripts/smb_client/debug.js - About 5 hrs to fix

                    Function onClickedTestHashAndResponse has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var onClickedTestHashAndResponse = function() {
                            console.log("LM Hash & LM Reponse");
                            var lmHash = new SmbClient.Auth.LmHash();
                            var hash = lmHash.create("SecREt01");
                            _outputArrayBuffer(hash);
                    Severity: Major
                    Found in app/scripts/index.js - About 4 hrs to fix

                      File Gruntfile.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      "use strict";
                      
                      module.exports = function (grunt) {
                      
                          require('load-grunt-tasks')(grunt);
                      Severity: Minor
                      Found in Gruntfile.js - About 4 hrs to fix

                        File chrome_socket_2.js has 331 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        (function() {
                        
                            "use strict";
                        
                            // Constructor
                        Severity: Minor
                        Found in app/scripts/smb_client/chrome_socket_2.js - About 3 hrs to fix

                          File index.js has 322 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          "use strict";
                          document.addEventListener("DOMContentLoaded", function() {
                              var h1 = document.getElementsByTagName("h1");
                              if (h1.length > 0) {
                                  h1[0].innerText = h1[0].innerText + " \"Allo";
                          Severity: Minor
                          Found in app/scripts/index.js - About 3 hrs to fix

                            Function createType3Message has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                TypeMessageUtils.prototype.createType3Message = function(
                                        username, password, domainName, serverChallenge, type2Message, lmCompatibilityLevel) {
                                    var type3Message = new Type3Message();
                            
                                    var lmHashObj, lmHash, lmResponseObj, lmResponse;
                            Severity: Major
                            Found in app/scripts/smb_client/auth/type_message_utils.js - About 3 hrs to fix

                              Function assignEventHandlers has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var assignEventHandlers = function() {
                                      chrome.alarms.onAlarm.addListener(
                                          function(alarm) {
                                              if (alarm.name === "cifs_alarm") {
                                                  this.onAlarm(alarm);
                              Severity: Major
                              Found in app/scripts/cifs_fs.js - About 3 hrs to fix

                                Function onClickedBtnMount has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    var onClickedBtnMount = function(evt) {
                                        console.log("onClickedBtnMount");
                                        var btnMount = document.querySelector("#btnMount");
                                        evt.preventDefault();
                                        btnMount.setAttribute("disabled", "true");
                                Severity: Major
                                Found in app/scripts/window.js - About 3 hrs to fix

                                  Function rename has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var rename = function(source, target, isDirectory, onSuccess, onError) {
                                          var session = this.client_.getSession();
                                          var options = null;
                                          if (isDirectory) {
                                              options = {
                                  Severity: Major
                                  Found in app/scripts/smb_client/smb2/client_impl.js - About 2 hrs to fix

                                    Function createSmbParametersArrayBuffer has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        TransactionRequest.prototype.createSmbParametersArrayBuffer = function() {
                                            var parameterBuffer = null;
                                            if (this.parameter_) {
                                                parameterBuffer = this.parameter_.createArrayBuffer();
                                            }
                                    Severity: Major
                                    Found in app/scripts/smb_client/smb1/models/transaction_request.js - About 2 hrs to fix

                                      File debug.js has 267 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      (function(Constants) {
                                      
                                          "use strict";
                                      
                                          // Constructor
                                      Severity: Minor
                                      Found in app/scripts/smb_client/debug.js - About 2 hrs to fix

                                        Function createArrayBuffer has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            Type1Message.prototype.createArrayBuffer = function() {
                                                var total =
                                                        8 + // NTLMSSP Signature
                                                        4 + // Type 1 Identifier
                                                        4; // Flag
                                        Severity: Major
                                        Found in app/scripts/smb_client/auth/type_1_message.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language