Showing 138 of 360 total issues
File client_impl.js
has 1072 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Smb2,
Constants,
Debug,
Protocol,
Packet,
File client_impl.js
has 1000 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Smb1, Constants, Debug, Protocol, Packet, BinaryUtils) {
"use strict";
// Constructor
File cifs_fs.js
has 798 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Debug) {
"use strict";
// Constructor
Function exports
has 330 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
File protocol.js
has 559 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Smb1,
Constants,
Packet,
Header,
Types,
File window.js
has 501 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
(function() {
var onLoad = function() {
File protocol.js
has 439 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Smb2,
Constants,
Packet,
Header,
Types,
File constants.js
has 429 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
// Constructor
Function getNtStatusMessage
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Debug.getNtStatusMessage = function(code) {
switch (code) {
case Constants.NT_STATUS_OK:
return "NT_STATUS_OK";
case Constants.NT_STATUS_OK:
Function onClickedTestHashAndResponse
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var onClickedTestHashAndResponse = function() {
console.log("LM Hash & LM Reponse");
var lmHash = new SmbClient.Auth.LmHash();
var hash = lmHash.create("SecREt01");
_outputArrayBuffer(hash);
File Gruntfile.js
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
File chrome_socket_2.js
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
"use strict";
// Constructor
File index.js
has 322 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
document.addEventListener("DOMContentLoaded", function() {
var h1 = document.getElementsByTagName("h1");
if (h1.length > 0) {
h1[0].innerText = h1[0].innerText + " \"Allo";
Function createType3Message
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TypeMessageUtils.prototype.createType3Message = function(
username, password, domainName, serverChallenge, type2Message, lmCompatibilityLevel) {
var type3Message = new Type3Message();
var lmHashObj, lmHash, lmResponseObj, lmResponse;
Function assignEventHandlers
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var assignEventHandlers = function() {
chrome.alarms.onAlarm.addListener(
function(alarm) {
if (alarm.name === "cifs_alarm") {
this.onAlarm(alarm);
Function onClickedBtnMount
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var onClickedBtnMount = function(evt) {
console.log("onClickedBtnMount");
var btnMount = document.querySelector("#btnMount");
evt.preventDefault();
btnMount.setAttribute("disabled", "true");
Function rename
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var rename = function(source, target, isDirectory, onSuccess, onError) {
var session = this.client_.getSession();
var options = null;
if (isDirectory) {
options = {
Function createSmbParametersArrayBuffer
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TransactionRequest.prototype.createSmbParametersArrayBuffer = function() {
var parameterBuffer = null;
if (this.parameter_) {
parameterBuffer = this.parameter_.createArrayBuffer();
}
File debug.js
has 267 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function(Constants) {
"use strict";
// Constructor
Function createArrayBuffer
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Type1Message.prototype.createArrayBuffer = function() {
var total =
8 + // NTLMSSP Signature
4 + // Type 1 Identifier
4; // Flag