HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/zaklada/html/node_modules/jshint/src/reporters/jslint_xml.js
module.exports =
{
  reporter: function(results) {
    "use strict";

    var files = {},
    out = [],
    pairs = {
      "&": "&",
      '"': """,
      "'": "'",
      "<": "&lt;",
      ">": "&gt;"
    },
    file, i, issue;

    function encode(s) {
      for (var r in pairs) {
        if (typeof(s) !== "undefined") {
          s = s.replace(new RegExp(r, "g"), pairs[r]);
        }
      }
      return s || "";
    }


    results.forEach(function(result) {
      result.file = result.file.replace(/^\.\//, '');
      if (!files[result.file]) {
        files[result.file] = [];
      }
      files[result.file].push(result.error);
    });

    out.push("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    out.push("<jslint>");

    for (file in files) {
      out.push("\t<file name=\"" + file + "\">");
      for (i = 0; i < files[file].length; i++) {
        issue = files[file][i];
        out.push("\t\t<issue line=\"" + issue.line +
          "\" char=\"" + issue.character +
          "\" reason=\"" + encode(issue.reason) +
          "\" evidence=\"" + encode(issue.evidence) +
          (issue.code ? "\" severity=\"" + encode(issue.code.charAt(0)) : "") +
          "\" />");
      }
      out.push("\t</file>");
    }

    out.push("</jslint>");

    console.log(out.join("\n") + "\n");
  }
};