antimalware/manul

View on GitHub

Showing 272 of 400 total issues

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 (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

      Avoid deeply nested control flow statements.
      Open

                                  if (m === 0) {
                                      s.write = q;
                                      r = s.inflate_flush(z, r);
                                      q = s.write;
                                      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 (n !== 0) {
                                        r = Z_OK;
                                    } else {
                                        that.bitb = b;
                                        that.bitk = k;
        Severity: Major
        Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

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

                  that.init = function(bl, bd, tl, tl_index, td, td_index) {
          Severity: Minor
          Found in src/log_analyzer/js/inflate.js - About 45 mins to fix

            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) {
                                              s.bitb = b;
                                              s.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

                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 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 _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 _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 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

                            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 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 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 _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 StaticTree has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          function StaticTree(static_tree, extra_bits, extra_base, elems, max_length) {
                                      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language