diff --git a/README.md b/README.md index da1754b..8cd3b97 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -# Android Linter Action +# Android Linter Action [![CI](https://github.com/betrybe/junit-android-evaluator-action/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/betrybe/android-linter-action/actions/workflows/main.yml) -A Github action that evaluates projects with [detekt](https://detekt.dev/) and [ktlint](https://pinterest.github.io/ktlint/0.50.0/). -Generate feedback about analyzes. +Projeto em javascript responsável por processar os relatórios(xml) de [detekt](https://detekt.dev/) e [ktlint](https://pinterest.github.io/ktlint/0.50.0/). ## Development @@ -19,7 +18,17 @@ ou ncc build index.js --out dist/index.js ``` -## Usage +## Configurando seu projeto para utilizar o avaliador + +[Atencao] O projeto deve estar devidamente com configurações do detekt e ktlint. +Para esta versão utilizamos as versões + +build.grade(app) + +``` + id 'org.jlleitschuh.gradle.ktlint' version '11.5.0' + id 'io.gitlab.arturbosch.detekt' version '1.23.0' +``` No projeto android adicionar arquivo .github/workflows/main.yml diff --git a/dist/index.js/index.js b/dist/index.js similarity index 97% rename from dist/index.js/index.js rename to dist/index.js index 317b712..766f1f0 100644 --- a/dist/index.js/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 9777: +/***/ 7850: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.issue = exports.issueCommand = void 0; const os = __importStar(__nccwpck_require__(2037)); -const utils_1 = __nccwpck_require__(9855); +const utils_1 = __nccwpck_require__(3608); /** * Commands * @@ -100,7 +100,7 @@ function escapeProperty(s) { /***/ }), -/***/ 4181: +/***/ 299: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -135,12 +135,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; -const command_1 = __nccwpck_require__(9777); -const file_command_1 = __nccwpck_require__(3679); -const utils_1 = __nccwpck_require__(9855); +const command_1 = __nccwpck_require__(7850); +const file_command_1 = __nccwpck_require__(5191); +const utils_1 = __nccwpck_require__(3608); const os = __importStar(__nccwpck_require__(2037)); const path = __importStar(__nccwpck_require__(1017)); -const oidc_utils_1 = __nccwpck_require__(6266); +const oidc_utils_1 = __nccwpck_require__(7632); /** * The code to exit an action */ @@ -425,17 +425,17 @@ exports.getIDToken = getIDToken; /** * Summary exports */ -var summary_1 = __nccwpck_require__(3154); +var summary_1 = __nccwpck_require__(3103); Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); /** * @deprecated use core.summary */ -var summary_2 = __nccwpck_require__(3154); +var summary_2 = __nccwpck_require__(3103); Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); /** * Path exports */ -var path_utils_1 = __nccwpck_require__(4605); +var path_utils_1 = __nccwpck_require__(5420); Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); @@ -443,7 +443,7 @@ Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: funct /***/ }), -/***/ 3679: +/***/ 5191: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -474,8 +474,8 @@ exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ const fs = __importStar(__nccwpck_require__(7147)); const os = __importStar(__nccwpck_require__(2037)); -const uuid_1 = __nccwpck_require__(53); -const utils_1 = __nccwpck_require__(9855); +const uuid_1 = __nccwpck_require__(215); +const utils_1 = __nccwpck_require__(3608); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; if (!filePath) { @@ -508,7 +508,7 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage; /***/ }), -/***/ 6266: +/***/ 7632: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -524,9 +524,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(5754); -const auth_1 = __nccwpck_require__(1475); -const core_1 = __nccwpck_require__(4181); +const http_client_1 = __nccwpck_require__(9774); +const auth_1 = __nccwpck_require__(5059); +const core_1 = __nccwpck_require__(299); class OidcClient { static createHttpClient(allowRetry = true, maxRetry = 10) { const requestOptions = { @@ -592,7 +592,7 @@ exports.OidcClient = OidcClient; /***/ }), -/***/ 4605: +/***/ 5420: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -657,7 +657,7 @@ exports.toPlatformPath = toPlatformPath; /***/ }), -/***/ 3154: +/***/ 3103: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -947,7 +947,7 @@ exports.summary = _summary; /***/ }), -/***/ 9855: +/***/ 3608: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -994,7 +994,7 @@ exports.toCommandProperties = toCommandProperties; /***/ }), -/***/ 1475: +/***/ 5059: /***/ (function(__unused_webpack_module, exports) { "use strict"; @@ -1082,7 +1082,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), -/***/ 5754: +/***/ 9774: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1120,8 +1120,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; const http = __importStar(__nccwpck_require__(3685)); const https = __importStar(__nccwpck_require__(5687)); -const pm = __importStar(__nccwpck_require__(5804)); -const tunnel = __importStar(__nccwpck_require__(586)); +const pm = __importStar(__nccwpck_require__(850)); +const tunnel = __importStar(__nccwpck_require__(5788)); var HttpCodes; (function (HttpCodes) { HttpCodes[HttpCodes["OK"] = 200] = "OK"; @@ -1694,7 +1694,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa /***/ }), -/***/ 5804: +/***/ 850: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -1777,7 +1777,7 @@ function isLoopbackAddress(host) { /***/ }), -/***/ 5996: +/***/ 9072: /***/ ((module) => { "use strict"; @@ -1847,10 +1847,10 @@ function range(a, b, str) { /***/ }), -/***/ 2089: +/***/ 6303: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var balanced = __nccwpck_require__(5996); +var balanced = __nccwpck_require__(9072); module.exports = expandTop; @@ -2057,7 +2057,7 @@ function expand(str, isTop) { /***/ }), -/***/ 6182: +/***/ 7900: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { ;(function (sax) { // wrapper for non-node envs @@ -3629,15 +3629,15 @@ function expand(str, isTop) { /***/ }), -/***/ 586: +/***/ 5788: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -module.exports = __nccwpck_require__(8526); +module.exports = __nccwpck_require__(9499); /***/ }), -/***/ 8526: +/***/ 9499: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -3909,7 +3909,7 @@ exports.debug = debug; // for test /***/ }), -/***/ 53: +/***/ 215: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -3973,29 +3973,29 @@ Object.defineProperty(exports, "parse", ({ } })); -var _v = _interopRequireDefault(__nccwpck_require__(5258)); +var _v = _interopRequireDefault(__nccwpck_require__(9613)); -var _v2 = _interopRequireDefault(__nccwpck_require__(3140)); +var _v2 = _interopRequireDefault(__nccwpck_require__(4260)); -var _v3 = _interopRequireDefault(__nccwpck_require__(36)); +var _v3 = _interopRequireDefault(__nccwpck_require__(7777)); -var _v4 = _interopRequireDefault(__nccwpck_require__(7309)); +var _v4 = _interopRequireDefault(__nccwpck_require__(7800)); -var _nil = _interopRequireDefault(__nccwpck_require__(7198)); +var _nil = _interopRequireDefault(__nccwpck_require__(1550)); -var _version = _interopRequireDefault(__nccwpck_require__(2936)); +var _version = _interopRequireDefault(__nccwpck_require__(3354)); -var _validate = _interopRequireDefault(__nccwpck_require__(1890)); +var _validate = _interopRequireDefault(__nccwpck_require__(1200)); -var _stringify = _interopRequireDefault(__nccwpck_require__(9204)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8994)); -var _parse = _interopRequireDefault(__nccwpck_require__(3725)); +var _parse = _interopRequireDefault(__nccwpck_require__(7844)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), -/***/ 9727: +/***/ 8489: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4025,7 +4025,7 @@ exports["default"] = _default; /***/ }), -/***/ 7198: +/***/ 1550: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -4040,7 +4040,7 @@ exports["default"] = _default; /***/ }), -/***/ 3725: +/***/ 7844: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4051,7 +4051,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require__(1890)); +var _validate = _interopRequireDefault(__nccwpck_require__(1200)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4092,7 +4092,7 @@ exports["default"] = _default; /***/ }), -/***/ 9765: +/***/ 4230: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -4107,7 +4107,7 @@ exports["default"] = _default; /***/ }), -/***/ 7422: +/***/ 1712: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4138,7 +4138,7 @@ function rng() { /***/ }), -/***/ 6317: +/***/ 4299: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4168,7 +4168,7 @@ exports["default"] = _default; /***/ }), -/***/ 9204: +/***/ 8994: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4179,7 +4179,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require__(1890)); +var _validate = _interopRequireDefault(__nccwpck_require__(1200)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4214,7 +4214,7 @@ exports["default"] = _default; /***/ }), -/***/ 5258: +/***/ 9613: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4225,9 +4225,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _rng = _interopRequireDefault(__nccwpck_require__(7422)); +var _rng = _interopRequireDefault(__nccwpck_require__(1712)); -var _stringify = _interopRequireDefault(__nccwpck_require__(9204)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8994)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4328,7 +4328,7 @@ exports["default"] = _default; /***/ }), -/***/ 3140: +/***/ 4260: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4339,9 +4339,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _v = _interopRequireDefault(__nccwpck_require__(344)); +var _v = _interopRequireDefault(__nccwpck_require__(1277)); -var _md = _interopRequireDefault(__nccwpck_require__(9727)); +var _md = _interopRequireDefault(__nccwpck_require__(8489)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4351,7 +4351,7 @@ exports["default"] = _default; /***/ }), -/***/ 344: +/***/ 1277: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4363,9 +4363,9 @@ Object.defineProperty(exports, "__esModule", ({ exports["default"] = _default; exports.URL = exports.DNS = void 0; -var _stringify = _interopRequireDefault(__nccwpck_require__(9204)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8994)); -var _parse = _interopRequireDefault(__nccwpck_require__(3725)); +var _parse = _interopRequireDefault(__nccwpck_require__(7844)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4436,7 +4436,7 @@ function _default(name, version, hashfunc) { /***/ }), -/***/ 36: +/***/ 7777: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4447,9 +4447,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _rng = _interopRequireDefault(__nccwpck_require__(7422)); +var _rng = _interopRequireDefault(__nccwpck_require__(1712)); -var _stringify = _interopRequireDefault(__nccwpck_require__(9204)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8994)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4480,7 +4480,7 @@ exports["default"] = _default; /***/ }), -/***/ 7309: +/***/ 7800: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4491,9 +4491,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _v = _interopRequireDefault(__nccwpck_require__(344)); +var _v = _interopRequireDefault(__nccwpck_require__(1277)); -var _sha = _interopRequireDefault(__nccwpck_require__(6317)); +var _sha = _interopRequireDefault(__nccwpck_require__(4299)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4503,7 +4503,7 @@ exports["default"] = _default; /***/ }), -/***/ 1890: +/***/ 1200: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4514,7 +4514,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _regex = _interopRequireDefault(__nccwpck_require__(9765)); +var _regex = _interopRequireDefault(__nccwpck_require__(4230)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4527,7 +4527,7 @@ exports["default"] = _default; /***/ }), -/***/ 2936: +/***/ 3354: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -4538,7 +4538,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require__(1890)); +var _validate = _interopRequireDefault(__nccwpck_require__(1200)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -4555,7 +4555,7 @@ exports["default"] = _default; /***/ }), -/***/ 6847: +/***/ 6687: /***/ (function(__unused_webpack_module, exports) { // Generated by CoffeeScript 1.12.7 @@ -4574,7 +4574,7 @@ exports["default"] = _default; /***/ }), -/***/ 1200: +/***/ 1832: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -4583,9 +4583,9 @@ exports["default"] = _default; var builder, defaults, escapeCDATA, requiresCDATA, wrapCDATA, hasProp = {}.hasOwnProperty; - builder = __nccwpck_require__(1700); + builder = __nccwpck_require__(2054); - defaults = (__nccwpck_require__(1966).defaults); + defaults = (__nccwpck_require__(2302).defaults); requiresCDATA = function(entry) { return typeof entry === "string" && (entry.indexOf('&') >= 0 || entry.indexOf('>') >= 0 || entry.indexOf('<') >= 0); @@ -4708,7 +4708,7 @@ exports["default"] = _default; /***/ }), -/***/ 1966: +/***/ 2302: /***/ (function(__unused_webpack_module, exports) { // Generated by CoffeeScript 1.12.7 @@ -4787,7 +4787,7 @@ exports["default"] = _default; /***/ }), -/***/ 2468: +/***/ 3293: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -4798,17 +4798,17 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - sax = __nccwpck_require__(6182); + sax = __nccwpck_require__(7900); events = __nccwpck_require__(2361); - bom = __nccwpck_require__(6847); + bom = __nccwpck_require__(6687); - processors = __nccwpck_require__(1354); + processors = __nccwpck_require__(4695); setImmediate = (__nccwpck_require__(9512).setImmediate); - defaults = (__nccwpck_require__(1966).defaults); + defaults = (__nccwpck_require__(2302).defaults); isEmpty = function(thing) { return typeof thing === "object" && (thing != null) && Object.keys(thing).length === 0; @@ -5175,7 +5175,7 @@ exports["default"] = _default; /***/ }), -/***/ 1354: +/***/ 4695: /***/ (function(__unused_webpack_module, exports) { // Generated by CoffeeScript 1.12.7 @@ -5216,7 +5216,7 @@ exports["default"] = _default; /***/ }), -/***/ 282: +/***/ 7315: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5226,13 +5226,13 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - defaults = __nccwpck_require__(1966); + defaults = __nccwpck_require__(2302); - builder = __nccwpck_require__(1200); + builder = __nccwpck_require__(1832); - parser = __nccwpck_require__(2468); + parser = __nccwpck_require__(3293); - processors = __nccwpck_require__(1354); + processors = __nccwpck_require__(4695); exports.defaults = defaults.defaults; @@ -5262,7 +5262,7 @@ exports["default"] = _default; /***/ }), -/***/ 4968: +/***/ 556: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5281,7 +5281,7 @@ exports["default"] = _default; /***/ }), -/***/ 208: +/***/ 5703: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5311,7 +5311,7 @@ exports["default"] = _default; /***/ }), -/***/ 6809: +/***/ 3988: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5401,7 +5401,7 @@ exports["default"] = _default; /***/ }), -/***/ 8866: +/***/ 9224: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5418,16 +5418,16 @@ exports["default"] = _default; /***/ }), -/***/ 811: +/***/ 4766: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, XMLAttribute, XMLNode; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); module.exports = XMLAttribute = (function() { function XMLAttribute(parent, name, value) { @@ -5533,7 +5533,7 @@ exports["default"] = _default; /***/ }), -/***/ 5302: +/***/ 805: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5542,9 +5542,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLCharacterData = __nccwpck_require__(512); + XMLCharacterData = __nccwpck_require__(5611); module.exports = XMLCData = (function(superClass) { extend(XMLCData, superClass); @@ -5576,7 +5576,7 @@ exports["default"] = _default; /***/ }), -/***/ 512: +/***/ 5611: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5585,7 +5585,7 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); module.exports = XMLCharacterData = (function(superClass) { extend(XMLCharacterData, superClass); @@ -5662,7 +5662,7 @@ exports["default"] = _default; /***/ }), -/***/ 2778: +/***/ 8352: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5671,9 +5671,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLCharacterData = __nccwpck_require__(512); + XMLCharacterData = __nccwpck_require__(5611); module.exports = XMLComment = (function(superClass) { extend(XMLComment, superClass); @@ -5705,16 +5705,16 @@ exports["default"] = _default; /***/ }), -/***/ 5906: +/***/ 5601: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList; - XMLDOMErrorHandler = __nccwpck_require__(2685); + XMLDOMErrorHandler = __nccwpck_require__(7395); - XMLDOMStringList = __nccwpck_require__(6865); + XMLDOMStringList = __nccwpck_require__(1522); module.exports = XMLDOMConfiguration = (function() { function XMLDOMConfiguration() { @@ -5776,7 +5776,7 @@ exports["default"] = _default; /***/ }), -/***/ 2685: +/***/ 7395: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5799,7 +5799,7 @@ exports["default"] = _default; /***/ }), -/***/ 7073: +/***/ 8535: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5838,7 +5838,7 @@ exports["default"] = _default; /***/ }), -/***/ 6865: +/***/ 1522: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -5873,7 +5873,7 @@ exports["default"] = _default; /***/ }), -/***/ 4271: +/***/ 7090: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5882,9 +5882,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDTDAttList = (function(superClass) { extend(XMLDTDAttList, superClass); @@ -5935,7 +5935,7 @@ exports["default"] = _default; /***/ }), -/***/ 9581: +/***/ 4895: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5944,9 +5944,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDTDElement = (function(superClass) { extend(XMLDTDElement, superClass); @@ -5980,7 +5980,7 @@ exports["default"] = _default; /***/ }), -/***/ 1638: +/***/ 9011: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -5989,11 +5989,11 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require__(6809).isObject); + isObject = (__nccwpck_require__(3988).isObject); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDTDEntity = (function(superClass) { extend(XMLDTDEntity, superClass); @@ -6084,7 +6084,7 @@ exports["default"] = _default; /***/ }), -/***/ 8582: +/***/ 4582: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -6093,9 +6093,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDTDNotation = (function(superClass) { extend(XMLDTDNotation, superClass); @@ -6143,7 +6143,7 @@ exports["default"] = _default; /***/ }), -/***/ 8305: +/***/ 6686: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -6152,11 +6152,11 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require__(6809).isObject); + isObject = (__nccwpck_require__(3988).isObject); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDeclaration = (function(superClass) { extend(XMLDeclaration, superClass); @@ -6193,7 +6193,7 @@ exports["default"] = _default; /***/ }), -/***/ 6566: +/***/ 761: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -6202,21 +6202,21 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require__(6809).isObject); + isObject = (__nccwpck_require__(3988).isObject); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLDTDAttList = __nccwpck_require__(4271); + XMLDTDAttList = __nccwpck_require__(7090); - XMLDTDEntity = __nccwpck_require__(1638); + XMLDTDEntity = __nccwpck_require__(9011); - XMLDTDElement = __nccwpck_require__(9581); + XMLDTDElement = __nccwpck_require__(4895); - XMLDTDNotation = __nccwpck_require__(8582); + XMLDTDNotation = __nccwpck_require__(4582); - XMLNamedNodeMap = __nccwpck_require__(2567); + XMLNamedNodeMap = __nccwpck_require__(3378); module.exports = XMLDocType = (function(superClass) { extend(XMLDocType, superClass); @@ -6386,7 +6386,7 @@ exports["default"] = _default; /***/ }), -/***/ 9352: +/***/ 4513: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -6395,19 +6395,19 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isPlainObject = (__nccwpck_require__(6809).isPlainObject); + isPlainObject = (__nccwpck_require__(3988).isPlainObject); - XMLDOMImplementation = __nccwpck_require__(7073); + XMLDOMImplementation = __nccwpck_require__(8535); - XMLDOMConfiguration = __nccwpck_require__(5906); + XMLDOMConfiguration = __nccwpck_require__(5601); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLStringifier = __nccwpck_require__(8959); + XMLStringifier = __nccwpck_require__(7598); - XMLStringWriter = __nccwpck_require__(2024); + XMLStringWriter = __nccwpck_require__(7991); module.exports = XMLDocument = (function(superClass) { extend(XMLDocument, superClass); @@ -6635,7 +6635,7 @@ exports["default"] = _default; /***/ }), -/***/ 2736: +/***/ 9152: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -6643,43 +6643,43 @@ exports["default"] = _default; var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref, hasProp = {}.hasOwnProperty; - ref = __nccwpck_require__(6809), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue; + ref = __nccwpck_require__(3988), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLDocument = __nccwpck_require__(9352); + XMLDocument = __nccwpck_require__(4513); - XMLElement = __nccwpck_require__(4295); + XMLElement = __nccwpck_require__(4772); - XMLCData = __nccwpck_require__(5302); + XMLCData = __nccwpck_require__(805); - XMLComment = __nccwpck_require__(2778); + XMLComment = __nccwpck_require__(8352); - XMLRaw = __nccwpck_require__(5076); + XMLRaw = __nccwpck_require__(4674); - XMLText = __nccwpck_require__(1970); + XMLText = __nccwpck_require__(4007); - XMLProcessingInstruction = __nccwpck_require__(6971); + XMLProcessingInstruction = __nccwpck_require__(5053); - XMLDeclaration = __nccwpck_require__(8305); + XMLDeclaration = __nccwpck_require__(6686); - XMLDocType = __nccwpck_require__(6566); + XMLDocType = __nccwpck_require__(761); - XMLDTDAttList = __nccwpck_require__(4271); + XMLDTDAttList = __nccwpck_require__(7090); - XMLDTDEntity = __nccwpck_require__(1638); + XMLDTDEntity = __nccwpck_require__(9011); - XMLDTDElement = __nccwpck_require__(9581); + XMLDTDElement = __nccwpck_require__(4895); - XMLDTDNotation = __nccwpck_require__(8582); + XMLDTDNotation = __nccwpck_require__(4582); - XMLAttribute = __nccwpck_require__(811); + XMLAttribute = __nccwpck_require__(4766); - XMLStringifier = __nccwpck_require__(8959); + XMLStringifier = __nccwpck_require__(7598); - XMLStringWriter = __nccwpck_require__(2024); + XMLStringWriter = __nccwpck_require__(7991); - WriterState = __nccwpck_require__(8866); + WriterState = __nccwpck_require__(9224); module.exports = XMLDocumentCB = (function() { function XMLDocumentCB(options, onData, onEnd) { @@ -7170,7 +7170,7 @@ exports["default"] = _default; /***/ }), -/***/ 6900: +/***/ 5725: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -7179,9 +7179,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); module.exports = XMLDummy = (function(superClass) { extend(XMLDummy, superClass); @@ -7208,7 +7208,7 @@ exports["default"] = _default; /***/ }), -/***/ 4295: +/***/ 4772: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -7217,15 +7217,15 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - ref = __nccwpck_require__(6809), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue; + ref = __nccwpck_require__(3988), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue; - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLAttribute = __nccwpck_require__(811); + XMLAttribute = __nccwpck_require__(4766); - XMLNamedNodeMap = __nccwpck_require__(2567); + XMLNamedNodeMap = __nccwpck_require__(3378); module.exports = XMLElement = (function(superClass) { extend(XMLElement, superClass); @@ -7513,7 +7513,7 @@ exports["default"] = _default; /***/ }), -/***/ 2567: +/***/ 3378: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -7578,7 +7578,7 @@ exports["default"] = _default; /***/ }), -/***/ 2213: +/***/ 9046: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -7586,7 +7586,7 @@ exports["default"] = _default; var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1, hasProp = {}.hasOwnProperty; - ref1 = __nccwpck_require__(6809), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue; + ref1 = __nccwpck_require__(3988), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue; XMLElement = null; @@ -7625,19 +7625,19 @@ exports["default"] = _default; this.children = []; this.baseURI = null; if (!XMLElement) { - XMLElement = __nccwpck_require__(4295); - XMLCData = __nccwpck_require__(5302); - XMLComment = __nccwpck_require__(2778); - XMLDeclaration = __nccwpck_require__(8305); - XMLDocType = __nccwpck_require__(6566); - XMLRaw = __nccwpck_require__(5076); - XMLText = __nccwpck_require__(1970); - XMLProcessingInstruction = __nccwpck_require__(6971); - XMLDummy = __nccwpck_require__(6900); - NodeType = __nccwpck_require__(208); - XMLNodeList = __nccwpck_require__(3596); - XMLNamedNodeMap = __nccwpck_require__(2567); - DocumentPosition = __nccwpck_require__(4968); + XMLElement = __nccwpck_require__(4772); + XMLCData = __nccwpck_require__(805); + XMLComment = __nccwpck_require__(8352); + XMLDeclaration = __nccwpck_require__(6686); + XMLDocType = __nccwpck_require__(761); + XMLRaw = __nccwpck_require__(4674); + XMLText = __nccwpck_require__(4007); + XMLProcessingInstruction = __nccwpck_require__(5053); + XMLDummy = __nccwpck_require__(5725); + NodeType = __nccwpck_require__(5703); + XMLNodeList = __nccwpck_require__(6170); + XMLNamedNodeMap = __nccwpck_require__(3378); + DocumentPosition = __nccwpck_require__(556); } } @@ -8370,7 +8370,7 @@ exports["default"] = _default; /***/ }), -/***/ 3596: +/***/ 6170: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -8405,7 +8405,7 @@ exports["default"] = _default; /***/ }), -/***/ 6971: +/***/ 5053: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -8414,9 +8414,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLCharacterData = __nccwpck_require__(512); + XMLCharacterData = __nccwpck_require__(5611); module.exports = XMLProcessingInstruction = (function(superClass) { extend(XMLProcessingInstruction, superClass); @@ -8461,7 +8461,7 @@ exports["default"] = _default; /***/ }), -/***/ 5076: +/***/ 4674: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -8470,9 +8470,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLNode = __nccwpck_require__(2213); + XMLNode = __nccwpck_require__(9046); module.exports = XMLRaw = (function(superClass) { extend(XMLRaw, superClass); @@ -8503,7 +8503,7 @@ exports["default"] = _default; /***/ }), -/***/ 101: +/***/ 4337: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -8512,11 +8512,11 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLWriterBase = __nccwpck_require__(4881); + XMLWriterBase = __nccwpck_require__(5321); - WriterState = __nccwpck_require__(8866); + WriterState = __nccwpck_require__(9224); module.exports = XMLStreamWriter = (function(superClass) { extend(XMLStreamWriter, superClass); @@ -8686,7 +8686,7 @@ exports["default"] = _default; /***/ }), -/***/ 2024: +/***/ 7991: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -8695,7 +8695,7 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLWriterBase = __nccwpck_require__(4881); + XMLWriterBase = __nccwpck_require__(5321); module.exports = XMLStringWriter = (function(superClass) { extend(XMLStringWriter, superClass); @@ -8728,7 +8728,7 @@ exports["default"] = _default; /***/ }), -/***/ 8959: +/***/ 7598: /***/ (function(module) { // Generated by CoffeeScript 1.12.7 @@ -8975,7 +8975,7 @@ exports["default"] = _default; /***/ }), -/***/ 1970: +/***/ 4007: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -8984,9 +8984,9 @@ exports["default"] = _default; extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLCharacterData = __nccwpck_require__(512); + XMLCharacterData = __nccwpck_require__(5611); module.exports = XMLText = (function(superClass) { extend(XMLText, superClass); @@ -9051,7 +9051,7 @@ exports["default"] = _default; /***/ }), -/***/ 4881: +/***/ 5321: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 @@ -9059,37 +9059,37 @@ exports["default"] = _default; var NodeType, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign, hasProp = {}.hasOwnProperty; - assign = (__nccwpck_require__(6809).assign); + assign = (__nccwpck_require__(3988).assign); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - XMLDeclaration = __nccwpck_require__(8305); + XMLDeclaration = __nccwpck_require__(6686); - XMLDocType = __nccwpck_require__(6566); + XMLDocType = __nccwpck_require__(761); - XMLCData = __nccwpck_require__(5302); + XMLCData = __nccwpck_require__(805); - XMLComment = __nccwpck_require__(2778); + XMLComment = __nccwpck_require__(8352); - XMLElement = __nccwpck_require__(4295); + XMLElement = __nccwpck_require__(4772); - XMLRaw = __nccwpck_require__(5076); + XMLRaw = __nccwpck_require__(4674); - XMLText = __nccwpck_require__(1970); + XMLText = __nccwpck_require__(4007); - XMLProcessingInstruction = __nccwpck_require__(6971); + XMLProcessingInstruction = __nccwpck_require__(5053); - XMLDummy = __nccwpck_require__(6900); + XMLDummy = __nccwpck_require__(5725); - XMLDTDAttList = __nccwpck_require__(4271); + XMLDTDAttList = __nccwpck_require__(7090); - XMLDTDElement = __nccwpck_require__(9581); + XMLDTDElement = __nccwpck_require__(4895); - XMLDTDEntity = __nccwpck_require__(1638); + XMLDTDEntity = __nccwpck_require__(9011); - XMLDTDNotation = __nccwpck_require__(8582); + XMLDTDNotation = __nccwpck_require__(4582); - WriterState = __nccwpck_require__(8866); + WriterState = __nccwpck_require__(9224); module.exports = XMLWriterBase = (function() { function XMLWriterBase(options) { @@ -9486,28 +9486,28 @@ exports["default"] = _default; /***/ }), -/***/ 1700: +/***/ 2054: /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref; - ref = __nccwpck_require__(6809), assign = ref.assign, isFunction = ref.isFunction; + ref = __nccwpck_require__(3988), assign = ref.assign, isFunction = ref.isFunction; - XMLDOMImplementation = __nccwpck_require__(7073); + XMLDOMImplementation = __nccwpck_require__(8535); - XMLDocument = __nccwpck_require__(9352); + XMLDocument = __nccwpck_require__(4513); - XMLDocumentCB = __nccwpck_require__(2736); + XMLDocumentCB = __nccwpck_require__(9152); - XMLStringWriter = __nccwpck_require__(2024); + XMLStringWriter = __nccwpck_require__(7991); - XMLStreamWriter = __nccwpck_require__(101); + XMLStreamWriter = __nccwpck_require__(4337); - NodeType = __nccwpck_require__(208); + NodeType = __nccwpck_require__(5703); - WriterState = __nccwpck_require__(8866); + WriterState = __nccwpck_require__(9224); module.exports.create = function(name, xmldec, doctype, options) { var doc, root; @@ -9558,14 +9558,14 @@ exports["default"] = _default; /***/ }), -/***/ 1267: +/***/ 234: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { const fs = __nccwpck_require__(7147) const path = __nccwpck_require__(1017) -const core = __nccwpck_require__(4181) -const { globSync } = __nccwpck_require__(5261) +const core = __nccwpck_require__(299) +const { globSync } = __nccwpck_require__(2146) /** * Retorna todos os arquivos xml's @@ -9627,25 +9627,27 @@ module.exports = { /***/ }), -/***/ 4269: +/***/ 696: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const { searchFilesXml, loadFile, searchJSONfiles } = __nccwpck_require__(1267) -const { parserXmlToObject } = __nccwpck_require__(7922) +const core = __nccwpck_require__(299) +const { searchFilesXml, loadFile, searchJSONfiles } = __nccwpck_require__(234) +const { parserXmlToObject } = __nccwpck_require__(211) +const DETEKT_REPORT_PATH = 'app/build/reports/detekt' /** * @example getDetektReport() * @return {string} */ function getDetektReport() { - const detektReportPath = 'app/build/reports/detekt' - const files = getCheckstylesFiles([detektReportPath]) + const files = getCheckstylesFiles([DETEKT_REPORT_PATH]) const detektReport = files.map((file) => { - return buildCheckstyleObject(detektReportPath, file.files) + return buildCheckstyleObject(DETEKT_REPORT_PATH, file.files) }).reduce((acc, val) => acc.concat(val), []) - return JSON.stringify(detektReport) + return detektReport + // return JSON.stringify(detektReport) } const KTLINT_REPORT_PATH = 'app/build/reports/ktlint' @@ -9677,11 +9679,13 @@ function getKtlintReport() { .map(file => JSON.parse(file)) .flat() + core.info(`\u001b[38;5;6m[info] 📑 Arquivos encontrados para análise-> ${files.length}`) + return JSON.stringify(ktlintReport) } /** - * @example getCheckstylesFiles('./src/test/res/') + * @example getCheckstylesFiles(['./src/test/res/']) * @param {array} pathList - caminho da pasta para o xml's. * @return {string} */ @@ -9721,10 +9725,84 @@ module.exports = { /***/ }), -/***/ 7922: +/***/ 6008: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const xml2js = __nccwpck_require__(282) +const core = __nccwpck_require__(299) + +/** + * Formata saída de report via detekt + * @param {string} report + * @example writeReportDetekt([{'version':'4.3','file':[{'name':'app/src/main/java/com/example/trybegenius/MainActivity.kt','error':[{'line':'89','column':'50','severity':'warning','message':'This expression contains a magic number. Consider defining it to a well named constant.','source':'detekt.MagicNumber'}]}]) + * @output + version: '4.3', + Verifique os erros abaixo: + `Formatado em tabela` + } + */ + +function writeReportDetekt(report) { + console.log(`Version: ${report[0].version}`) + if(!report[0]?.file) { + console.log('✅ APROVADO') + } + else { + console.log('Verifique os erros abaixo:') + + if(report.length > 0 && report[0].file.length > 0) { + report[0].file.forEach((element) => { + console.log(`❌ [erro] Arquivo: ${element.name}`) + console.table(element.error) + }) + } + // Trecho força quebra da action quando há erros reportados. + core.setFailed('❌ Erros encontrados') + + } +} + + +/** + * Formata saída de report via detekt + * @param {string} report + * @example writeReportKtlint([{"file":"/home/runner/work/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/app/src/main/java/com/example/trybegenius/MainActivity.kt","errors":[{"line":3,"column":1,"message":"Imports must be ordered in lexicographic order without any empty lines in-between with \"java\", \"javax\", \"kotlin\" and aliases in the end","rule":"import-ordering"}]},{"file":"/home/runner/work/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/app/src/androidTest/java/com/example/trybegenius/ExampleInstrumentedTest.kt","errors":[{"line":1,"column":1,"message":"File must end with a newline (\\n)","rule":"final-newline"},{"line":3,"column":1,"message":"Imports must be ordered in lexicographic order without any empty lines in-between with \"java\", \"javax\", \"kotlin\" and aliases in the end","rule":"import-ordering"},{"line":9,"column":1,"message":"Wildcard import","rule":"no-wildcard-imports"}]}]) + * @output + Verifique os erros abaixo: + `Formatado em tabela` + } + */ + + +function writeReportKtlint(report) { + var output = JSON.parse(report) + console.log(output) + if(output.length === 0) { + console.log('✅ APROVADO') + } + else { + console.log('Verifique os erros abaixo:') + output.forEach((element) => { + console.log(`❌ [erro] Arquivo: ${element.file}`) + console.table(element.errors) + }) + + // Trecho força quebra da action quando há erros reportados. + core.setFailed('❌ Erros encontrados') + } +} + +module.exports = { + writeReportDetekt, + writeReportKtlint +} + + +/***/ }), + +/***/ 211: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const xml2js = __nccwpck_require__(7315) /** * Transforma xml em objeto @@ -9931,18 +10009,18 @@ module.exports = require("util"); /***/ }), -/***/ 9181: +/***/ 2496: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Glob = void 0; -const minimatch_1 = __nccwpck_require__(1484); -const path_scurry_1 = __nccwpck_require__(3357); +const minimatch_1 = __nccwpck_require__(7126); +const path_scurry_1 = __nccwpck_require__(7394); const url_1 = __nccwpck_require__(7310); -const pattern_js_1 = __nccwpck_require__(6603); -const walker_js_1 = __nccwpck_require__(7549); +const pattern_js_1 = __nccwpck_require__(6070); +const walker_js_1 = __nccwpck_require__(1716); // if no process global, just call it linux. // so we default to case-sensitive, / separators const defaultPlatform = typeof process === 'object' && @@ -10176,14 +10254,14 @@ exports.Glob = Glob; /***/ }), -/***/ 7877: +/***/ 1094: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hasMagic = void 0; -const minimatch_1 = __nccwpck_require__(1484); +const minimatch_1 = __nccwpck_require__(7126); /** * Return true if the patterns provided contain any magic glob characters, * given the options provided. @@ -10210,7 +10288,7 @@ exports.hasMagic = hasMagic; /***/ }), -/***/ 7800: +/***/ 9041: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -10221,8 +10299,8 @@ exports.hasMagic = hasMagic; // Ignores are always parsed in dot:true mode Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Ignore = void 0; -const minimatch_1 = __nccwpck_require__(1484); -const pattern_js_1 = __nccwpck_require__(6603); +const minimatch_1 = __nccwpck_require__(7126); +const pattern_js_1 = __nccwpck_require__(6070); const defaultPlatform = typeof process === 'object' && process && typeof process.platform === 'string' @@ -10320,16 +10398,16 @@ exports.Ignore = Ignore; /***/ }), -/***/ 5261: +/***/ 2146: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.glob = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.globIterate = exports.globIterateSync = exports.globSync = exports.globStream = exports.globStreamSync = void 0; -const minimatch_1 = __nccwpck_require__(1484); -const glob_js_1 = __nccwpck_require__(9181); -const has_magic_js_1 = __nccwpck_require__(7877); +const minimatch_1 = __nccwpck_require__(7126); +const glob_js_1 = __nccwpck_require__(2496); +const has_magic_js_1 = __nccwpck_require__(1094); function globStreamSync(pattern, options = {}) { return new glob_js_1.Glob(pattern, options).streamSync(); } @@ -10365,12 +10443,12 @@ exports.sync = Object.assign(globSync, { iterate: globIterateSync, }); /* c8 ignore start */ -var minimatch_2 = __nccwpck_require__(1484); +var minimatch_2 = __nccwpck_require__(7126); Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return minimatch_2.escape; } })); Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return minimatch_2.unescape; } })); -var glob_js_2 = __nccwpck_require__(9181); +var glob_js_2 = __nccwpck_require__(2496); Object.defineProperty(exports, "Glob", ({ enumerable: true, get: function () { return glob_js_2.Glob; } })); -var has_magic_js_2 = __nccwpck_require__(7877); +var has_magic_js_2 = __nccwpck_require__(1094); Object.defineProperty(exports, "hasMagic", ({ enumerable: true, get: function () { return has_magic_js_2.hasMagic; } })); /* c8 ignore stop */ exports.glob = Object.assign(glob_, { @@ -10395,7 +10473,7 @@ exports.glob.glob = exports.glob; /***/ }), -/***/ 6603: +/***/ 6070: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -10403,7 +10481,7 @@ exports.glob.glob = exports.glob; // this is just a very light wrapper around 2 arrays with an offset index Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Pattern = void 0; -const minimatch_1 = __nccwpck_require__(1484); +const minimatch_1 = __nccwpck_require__(7126); const isPatternList = (pl) => pl.length >= 1; const isGlobList = (gl) => gl.length >= 1; /** @@ -10621,7 +10699,7 @@ exports.Pattern = Pattern; /***/ }), -/***/ 46: +/***/ 7422: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -10629,7 +10707,7 @@ exports.Pattern = Pattern; // synchronous utility for filtering entries and calculating subwalks Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Processor = exports.SubWalks = exports.MatchRecord = exports.HasWalkedCache = void 0; -const minimatch_1 = __nccwpck_require__(1484); +const minimatch_1 = __nccwpck_require__(7126); /** * A cache of which patterns have been processed for a given Path */ @@ -10937,7 +11015,7 @@ exports.Processor = Processor; /***/ }), -/***/ 7549: +/***/ 1716: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -10950,9 +11028,9 @@ exports.GlobStream = exports.GlobWalker = exports.GlobUtil = void 0; * * @module */ -const minipass_1 = __nccwpck_require__(6399); -const ignore_js_1 = __nccwpck_require__(7800); -const processor_js_1 = __nccwpck_require__(46); +const minipass_1 = __nccwpck_require__(5468); +const ignore_js_1 = __nccwpck_require__(9041); +const processor_js_1 = __nccwpck_require__(7422); const makeIgnore = (ignore, opts) => typeof ignore === 'string' ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) @@ -11302,7 +11380,7 @@ exports.GlobStream = GlobStream; /***/ }), -/***/ 6516: +/***/ 2637: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -11323,7 +11401,7 @@ exports.assertValidPattern = assertValidPattern; /***/ }), -/***/ 7002: +/***/ 8326: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -11331,8 +11409,8 @@ exports.assertValidPattern = assertValidPattern; // parse a single path portion Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AST = void 0; -const brace_expressions_js_1 = __nccwpck_require__(1707); -const unescape_js_1 = __nccwpck_require__(3580); +const brace_expressions_js_1 = __nccwpck_require__(7279); +const unescape_js_1 = __nccwpck_require__(7907); const types = new Set(['!', '?', '+', '*', '@']); const isExtglobType = (c) => types.has(c); // Patterns that get prepended to bind to the start of either the @@ -11919,7 +11997,7 @@ exports.AST = AST; /***/ }), -/***/ 1707: +/***/ 7279: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -12078,7 +12156,7 @@ exports.parseClass = parseClass; /***/ }), -/***/ 6666: +/***/ 2663: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -12107,7 +12185,7 @@ exports.escape = escape; /***/ }), -/***/ 1484: +/***/ 7126: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -12117,11 +12195,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0; -const brace_expansion_1 = __importDefault(__nccwpck_require__(2089)); -const assert_valid_pattern_js_1 = __nccwpck_require__(6516); -const ast_js_1 = __nccwpck_require__(7002); -const escape_js_1 = __nccwpck_require__(6666); -const unescape_js_1 = __nccwpck_require__(3580); +const brace_expansion_1 = __importDefault(__nccwpck_require__(6303)); +const assert_valid_pattern_js_1 = __nccwpck_require__(2637); +const ast_js_1 = __nccwpck_require__(8326); +const escape_js_1 = __nccwpck_require__(2663); +const unescape_js_1 = __nccwpck_require__(7907); const minimatch = (p, pattern, options = {}) => { (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); // shortcut: comments match nothing. @@ -13110,11 +13188,11 @@ class Minimatch { } exports.Minimatch = Minimatch; /* c8 ignore start */ -var ast_js_2 = __nccwpck_require__(7002); +var ast_js_2 = __nccwpck_require__(8326); Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } })); -var escape_js_2 = __nccwpck_require__(6666); +var escape_js_2 = __nccwpck_require__(2663); Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } })); -var unescape_js_2 = __nccwpck_require__(3580); +var unescape_js_2 = __nccwpck_require__(7907); Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } })); /* c8 ignore stop */ exports.minimatch.AST = ast_js_1.AST; @@ -13125,7 +13203,7 @@ exports.minimatch.unescape = unescape_js_1.unescape; /***/ }), -/***/ 3580: +/***/ 7907: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -13156,7 +13234,7 @@ exports.unescape = unescape; /***/ }), -/***/ 6399: +/***/ 5468: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -14191,7 +14269,7 @@ exports.Minipass = Minipass; /***/ }), -/***/ 3357: +/***/ 7394: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -14221,7 +14299,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PathScurry = exports.Path = exports.PathScurryDarwin = exports.PathScurryPosix = exports.PathScurryWin32 = exports.PathScurryBase = exports.PathPosix = exports.PathWin32 = exports.PathBase = exports.ChildrenCache = exports.ResolveCache = void 0; -const lru_cache_1 = __nccwpck_require__(2099); +const lru_cache_1 = __nccwpck_require__(440); const path_1 = __nccwpck_require__(1017); const url_1 = __nccwpck_require__(7310); const actualFS = __importStar(__nccwpck_require__(7147)); @@ -14230,7 +14308,7 @@ const realpathSync = fs_1.realpathSync.native; // TODO: test perf of fs/promises realpath vs realpathCB, // since the promises one uses realpath.native const promises_1 = __nccwpck_require__(3292); -const minipass_1 = __nccwpck_require__(6399); +const minipass_1 = __nccwpck_require__(5468); const defaultFS = { lstatSync: fs_1.lstatSync, readdir: fs_1.readdir, @@ -16216,7 +16294,7 @@ exports.PathScurry = process.platform === 'win32' /***/ }), -/***/ 2099: +/***/ 440: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -17659,19 +17737,16 @@ exports.LRUCache = LRUCache; var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -const { getDetektReport, getKtlintReport } = __nccwpck_require__(4269) +const { getDetektReport, getKtlintReport } = __nccwpck_require__(696) const { spawn } = __nccwpck_require__(2081) -const core = __nccwpck_require__(4181) +const core = __nccwpck_require__(299) +const { writeReportDetekt, writeReportKtlint } = __nccwpck_require__(6008) function runDetekt() { const command = './gradlew detekt' const childProcess = spawn(command, { shell: true }) try { - childProcess.stdout.on('data', (data) => { - core.info(`\u001b[38;5;6m[info] Saída do comando: ${data}`) - }) - childProcess.stderr.on('data', (data) => { core.setFailed(`\u001b[38;5;6m[erro] EXEC -> Erro no comando bash: ${data}`) }) @@ -17680,13 +17755,16 @@ function runDetekt() { core.info('\u001b[38;5;6m[info] Iniciando análise do detekt') report = getDetektReport() - core.setOutput('result > detekt', report) - core.notice(`\u001b[32;5;6m 🚀 Processo concluído -> ${report}`) + core.setOutput('Detekt', JSON.stringify(report)) + core.notice('\u001b[32;5;6m 🚀 DETEKT > Processo concluído') + + writeReportDetekt(report) + return report }) } catch (error) { - core.setOutput('result > detect', error) + core.setOutput('Detekt', error) core.setFailed(`${error}`) return error } @@ -17706,12 +17784,13 @@ function runKtlint() { report = getKtlintReport() core.setOutput('result > ktlint', report) - core.notice(`\u001b[32;5;6m 🚀 Processo concluído -> ${report}`) + core.notice('\u001b[32;5;6m 🚀 KTLINT > Processo concluído') + writeReportKtlint(report) return report }) } catch (error) { - core.setOutput('result > detect', error) + core.setOutput('result > ktlint', error) core.setFailed(`${error}`) return error } diff --git a/dist/licenses.txt b/dist/licenses.txt new file mode 100644 index 0000000..fba12ef --- /dev/null +++ b/dist/licenses.txt @@ -0,0 +1,351 @@ +@actions/core +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@actions/http-client +MIT +Actions Http Client for Node.js + +Copyright (c) GitHub, Inc. + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +balanced-match +MIT +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +brace-expansion +MIT +MIT License + +Copyright (c) 2013 Julian Gruber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +glob +ISC +The ISC License + +Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +lru-cache +ISC +The ISC License + +Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +minimatch +ISC +The ISC License + +Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +minipass +ISC +The ISC License + +Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +path-scurry +BlueOak-1.0.0 +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +sax +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +==== + +`String.fromCodePoint` by Mathias Bynens used according to terms of MIT +License, as follows: + + Copyright Mathias Bynens + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +tunnel +MIT +The MIT License (MIT) + +Copyright (c) 2012 Koichi Kobayashi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +uuid +MIT +The MIT License (MIT) + +Copyright (c) 2010-2020 Robert Kieffer and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +xml2js +MIT +Copyright 2010, 2011, 2012, 2013. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +xmlbuilder +MIT +The MIT License (MIT) + +Copyright (c) 2013 Ozgur Ozcitak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/index.js b/index.js index 479155b..542ee54 100644 --- a/index.js +++ b/index.js @@ -1,16 +1,13 @@ const { getDetektReport, getKtlintReport } = require('./src/controller/linterManager') const { spawn } = require('child_process') const core = require('@actions/core') +const { writeReportDetekt, writeReportKtlint } = require('./src/controller/writeOutput') function runDetekt() { const command = './gradlew detekt' const childProcess = spawn(command, { shell: true }) try { - childProcess.stdout.on('data', (data) => { - core.info(`\u001b[38;5;6m[info] Saída do comando: ${data}`) - }) - childProcess.stderr.on('data', (data) => { core.setFailed(`\u001b[38;5;6m[erro] EXEC -> Erro no comando bash: ${data}`) }) @@ -19,13 +16,16 @@ function runDetekt() { core.info('\u001b[38;5;6m[info] Iniciando análise do detekt') report = getDetektReport() - core.setOutput('result > detekt', report) - core.notice(`\u001b[32;5;6m 🚀 Processo concluído -> ${report}`) + core.setOutput('Detekt', JSON.stringify(report)) + core.notice('\u001b[32;5;6m 🚀 DETEKT > Processo concluído') + + writeReportDetekt(report) + return report }) } catch (error) { - core.setOutput('result > detect', error) + core.setOutput('Detekt', error) core.setFailed(`${error}`) return error } @@ -45,12 +45,13 @@ function runKtlint() { report = getKtlintReport() core.setOutput('result > ktlint', report) - core.notice(`\u001b[32;5;6m 🚀 Processo concluído -> ${report}`) + core.notice('\u001b[32;5;6m 🚀 KTLINT > Processo concluído') + writeReportKtlint(report) return report }) } catch (error) { - core.setOutput('result > detect', error) + core.setOutput('result > ktlint', error) core.setFailed(`${error}`) return error } diff --git a/src/controller/fileManager.js b/src/controller/fileManager.js index bfebffd..7316d29 100644 --- a/src/controller/fileManager.js +++ b/src/controller/fileManager.js @@ -2,7 +2,7 @@ const fs = require('fs') const path = require('path') const core = require('@actions/core') -const { globSync } = require("glob") +const { globSync } = require('glob') /** * Retorna todos os arquivos xml's diff --git a/src/controller/linterManager.js b/src/controller/linterManager.js index 73710b9..445aca2 100644 --- a/src/controller/linterManager.js +++ b/src/controller/linterManager.js @@ -1,19 +1,21 @@ +const core = require('@actions/core') const { searchFilesXml, loadFile, searchJSONfiles } = require('../controller/fileManager') const { parserXmlToObject } = require('../controller/xmlParser') +const DETEKT_REPORT_PATH = 'app/build/reports/detekt' /** * @example getDetektReport() * @return {string} */ function getDetektReport() { - const detektReportPath = 'app/build/reports/detekt' - const files = getCheckstylesFiles([detektReportPath]) + const files = getCheckstylesFiles([DETEKT_REPORT_PATH]) const detektReport = files.map((file) => { - return buildCheckstyleObject(detektReportPath, file.files) + return buildCheckstyleObject(DETEKT_REPORT_PATH, file.files) }).reduce((acc, val) => acc.concat(val), []) - return JSON.stringify(detektReport) + return detektReport + // return JSON.stringify(detektReport) } const KTLINT_REPORT_PATH = 'app/build/reports/ktlint' @@ -45,11 +47,13 @@ function getKtlintReport() { .map(file => JSON.parse(file)) .flat() + core.info(`\u001b[38;5;6m[info] 📑 Arquivos encontrados para análise-> ${files.length}`) + return JSON.stringify(ktlintReport) } /** - * @example getCheckstylesFiles('./src/test/res/') + * @example getCheckstylesFiles(['./src/test/res/']) * @param {array} pathList - caminho da pasta para o xml's. * @return {string} */ diff --git a/src/controller/writeOutput.js b/src/controller/writeOutput.js new file mode 100644 index 0000000..8a74ca6 --- /dev/null +++ b/src/controller/writeOutput.js @@ -0,0 +1,66 @@ +const core = require('@actions/core') + +/** + * Formata saída de report via detekt + * @param {string} report + * @example writeReportDetekt([{'version':'4.3','file':[{'name':'app/src/main/java/com/example/trybegenius/MainActivity.kt','error':[{'line':'89','column':'50','severity':'warning','message':'This expression contains a magic number. Consider defining it to a well named constant.','source':'detekt.MagicNumber'}]}]) + * @output + version: '4.3', + Verifique os erros abaixo: + `Formatado em tabela` + } + */ + +function writeReportDetekt(report) { + console.log(`Version: ${report[0].version}`) + if(!report[0]?.file) { + console.log('✅ APROVADO') + } + else { + console.log('Verifique os erros abaixo:') + + if(report.length > 0 && report[0].file.length > 0) { + report[0].file.forEach((element) => { + console.log(`❌ [erro] Arquivo: ${element.name}`) + console.table(element.error) + }) + } + // Trecho força quebra da action quando há erros reportados. + core.setFailed('❌ Erros encontrados') + + } +} + + +/** + * Formata saída de report via detekt + * @param {string} report + * @example writeReportKtlint([{"file":"/home/runner/work/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/app/src/main/java/com/example/trybegenius/MainActivity.kt","errors":[{"line":3,"column":1,"message":"Imports must be ordered in lexicographic order without any empty lines in-between with \"java\", \"javax\", \"kotlin\" and aliases in the end","rule":"import-ordering"}]},{"file":"/home/runner/work/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/sd-000-projeto-android-trybe-genius-2023-07-31-09-23-00/app/src/androidTest/java/com/example/trybegenius/ExampleInstrumentedTest.kt","errors":[{"line":1,"column":1,"message":"File must end with a newline (\\n)","rule":"final-newline"},{"line":3,"column":1,"message":"Imports must be ordered in lexicographic order without any empty lines in-between with \"java\", \"javax\", \"kotlin\" and aliases in the end","rule":"import-ordering"},{"line":9,"column":1,"message":"Wildcard import","rule":"no-wildcard-imports"}]}]) + * @output + Verifique os erros abaixo: + `Formatado em tabela` + } + */ + + +function writeReportKtlint(report) { + var output = JSON.parse(report) + if(output.length === 0) { + console.log('✅ APROVADO') + } + else { + console.log('Verifique os erros abaixo:') + output.forEach((element) => { + console.log(`❌ [erro] Arquivo: ${element.file}`) + console.table(element.errors) + }) + + // Trecho força quebra da action quando há erros reportados. + core.setFailed('❌ Erros encontrados') + } +} + +module.exports = { + writeReportDetekt, + writeReportKtlint +} diff --git a/src/runDetekt.js b/src/runDetekt.js deleted file mode 100644 index c47e12e..0000000 --- a/src/runDetekt.js +++ /dev/null @@ -1,11 +0,0 @@ - - - -function runDetekt() { - return true -} - -module.exports = { - runDetekt -} - diff --git a/src/test/runDetekt.test.js b/src/test/runDetekt.test.js deleted file mode 100644 index 93c3cc9..0000000 --- a/src/test/runDetekt.test.js +++ /dev/null @@ -1,7 +0,0 @@ -const runDetekt = require('../runDetekt.js'); - -describe('runDetekt', () => { - test('should return true', () => { - expect(runDetekt.runDetekt()).toBe(true); - }) -}) \ No newline at end of file