antimalware/manul

View on GitHub

Showing 272 of 400 total issues

Avoid deeply nested control flow statements.
Open

                            if (q == s.end && s.read !== 0) {
                                q = 0;
                                m = q < s.read ? s.read - q - 1 : s.end - q;
                            }
Severity: Major
Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (m === 0) {
                                    that.bitb = b;
                                    that.bitk = k;
                                    z.avail_in = n;
                                    z.total_in += p - z.next_in_index;
    Severity: Major
    Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  do {
                                      blens[i++] = c;
                                  } while (--j !== 0);
      Severity: Major
      Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

        Function process has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                function process(fileEntry, entry, onend, onprogress, onerror, totalSize) {
        Severity: Minor
        Found in src/log_analyzer/js/zip-fs.js - About 45 mins to fix

          Function setCookie has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function setCookie (name, value, expires, path, domain, secure) {
          Severity: Minor
          Found in src/scanner/static/js/auth.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (typeof val == "string") {
                                        mimeTypes[val] = type + "/" + subtype;
                                    } else {
                                        for (index = 0; index < val.length; index++) {
                                            mimeTypes[val[index]] = type + "/" + subtype;
            Severity: Major
            Found in src/log_analyzer/js/mime-types.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if (j < z) {
                                              while (++j < z) { // try smaller tables up to z bits
                                                  if ((f <<= 1) <= c[++xp])
                                                      break; // enough codes to use up j bits
                                                  f -= c[xp]; // else deduct codes from patterns
              Severity: Major
              Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

                Method detectMalware has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function detectMalware($filePath, &$foundFragment, &$pos, $startTime, $timeout, $ext)
                Severity: Minor
                Found in src/scanner/classes/MalwareDetector.inc.php - About 45 mins to fix

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

                      toggleMod : function(elem, modName, modVal1, modVal2, condition) {
                  Severity: Minor
                  Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                    function initBlock(blockName, domElem, params, forceLive, callback) {
                    Severity: Minor
                    Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                          _liveCtxBind : function(ctx, e, data, fn, fnCtx) {
                      Severity: Minor
                      Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                            _callModFn : function(prefix, elemName, modName, modVal, modFnParams) {
                        Severity: Minor
                        Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                              _onSetMod : function(modName, modVal, oldModVal, elem, elemName) {
                          Severity: Minor
                          Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                _onSetMod : function(modName, modVal, oldModVal, elem, elemName) {
                            Severity: Minor
                            Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                  function Config(good_length, max_lazy, nice_length, max_chain, func) {
                              Severity: Minor
                              Found in src/log_analyzer/js/deflate.js - About 35 mins to fix

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

                                    on : function(ctx, e, data, fn, fnCtx) {
                                Severity: Minor
                                Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                      function readCommonHeader(entry, data, index, centralDirectory, onerror) {
                                  Severity: Minor
                                  Found in src/log_analyzer/js/zip.js - About 35 mins to fix

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

                                                add : function(name, reader, onend, onprogress, options) {
                                    Severity: Minor
                                    Found in src/log_analyzer/js/zip.js - About 35 mins to fix

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

                                              on : function(e, data, fn, ctx, _special) {
                                      Severity: Minor
                                      Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix

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

                                            findElem : function(ctx, names, modName, modVal, strictMode) {
                                        Severity: Minor
                                        Found in src/log_analyzer/js/analyzer.table.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language