@code-pushup/cli 0.8.17 → 0.8.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -139,7 +139,7 @@ jobs:
139
139
  We provide comprehensive documentation on [how to create a custom plugin](./docs/custom-plugins.md).
140
140
 
141
141
  The repository also maintains a set of plugin examples showcasing different scenarios.
142
- Each example is fully tested to give demonstrate best practices for plugin testing.
142
+ Each example is fully tested to demonstrate best practices for plugin testing as well.
143
143
 
144
144
  **Example for custom plugins:**
145
145
 
@@ -170,7 +170,7 @@ Each example is fully tested to give demonstrate best practices for plugin testi
170
170
  | **`--onlyPlugins`** | `string[]` | `[]` | Only run the specified plugins. Applicable to all commands except `upload`. |
171
171
 
172
172
  > [!NOTE]
173
- > All common options, expect `--onlyPlugins`, can be specified in the configuration file as well.
173
+ > All common options, except `--onlyPlugins`, can be specified in the configuration file as well.
174
174
  > CLI arguments take precedence over configuration file options.
175
175
 
176
176
  > [!NOTE]
@@ -184,7 +184,7 @@ Usage:
184
184
  `code-pushup collect [options]`
185
185
 
186
186
  Description:
187
- The command initializes the necessary plugins, runs them, and then collects the results. After collecting the results, it generates a comprehensive report.
187
+ The command initializes and executes the necessary plugins and collects the results. Based on the results it generates a comprehensive report.
188
188
 
189
189
  Refer to the [Common Command Options](#common-command-options) for the list of available options.
190
190
 
@@ -204,7 +204,7 @@ Usage:
204
204
  `code-pushup autorun [options]`
205
205
 
206
206
  Description:
207
- Run plugins, collect results and upload report to the Code PushUp portal.
207
+ Run plugins, collect results and upload the report to the Code PushUp portal.
208
208
 
209
209
  Refer to the [Common Command Options](#common-command-options) for the list of available options.
210
210
 
package/index.js CHANGED
@@ -1725,7 +1725,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
1725
1725
 
1726
1726
  // packages/core/package.json
1727
1727
  var name = "@code-pushup/core";
1728
- var version = "0.8.17";
1728
+ var version = "0.8.19";
1729
1729
 
1730
1730
  // packages/core/src/lib/implementation/collect.ts
1731
1731
  async function collect(options2) {
@@ -2030,6 +2030,33 @@ var commands = [
2030
2030
  yargsConfigCommandObject()
2031
2031
  ];
2032
2032
 
2033
+ // packages/cli/src/lib/implementation/core-config.middleware.ts
2034
+ async function coreConfigMiddleware(processArgs) {
2035
+ const args = processArgs;
2036
+ const { config, ...cliOptions } = args;
2037
+ const importedRc = await readCodePushupConfig(config);
2038
+ const parsedProcessArgs = {
2039
+ config,
2040
+ ...importedRc,
2041
+ ...cliOptions,
2042
+ upload: {
2043
+ ...importedRc.upload,
2044
+ ...cliOptions.upload
2045
+ },
2046
+ // we can't use a async rc file as yargs does not support it. see: https://github.com/yargs/yargs/issues/2234
2047
+ // therefore this can't live in option defaults as the order would be `config`->`provided options`->default
2048
+ // so we have to manually implement the order
2049
+ persist: {
2050
+ outputDir: cliOptions.persist?.outputDir || importedRc.persist?.outputDir || PERSIST_OUTPUT_DIR,
2051
+ filename: cliOptions.persist?.filename || importedRc.persist?.filename || PERSIST_FILENAME,
2052
+ format: coerceArray(
2053
+ cliOptions.persist?.format ?? importedRc.persist?.format ?? PERSIST_FORMAT
2054
+ )
2055
+ }
2056
+ };
2057
+ return parsedProcessArgs;
2058
+ }
2059
+
2033
2060
  // packages/cli/src/lib/implementation/only-plugins.utils.ts
2034
2061
  import chalk8 from "chalk";
2035
2062
  function filterPluginsByOnlyPluginsOption(plugins, { onlyPlugins }) {
@@ -2073,43 +2100,32 @@ function validateOnlyPluginsOption(plugins, {
2073
2100
  }
2074
2101
  }
2075
2102
 
2076
- // packages/cli/src/lib/implementation/core-config.middleware.ts
2077
- async function coreConfigMiddleware(processArgs) {
2103
+ // packages/cli/src/lib/implementation/only-plugins.middleware.ts
2104
+ function onlyPluginsMiddleware(processArgs) {
2078
2105
  const args = processArgs;
2079
- const { config, ...cliOptions } = args;
2080
- const importedRc = await readCodePushupConfig(config);
2081
- validateOnlyPluginsOption(importedRc.plugins, cliOptions);
2106
+ const cliOptions = args;
2107
+ validateOnlyPluginsOption(cliOptions.plugins, cliOptions);
2082
2108
  const parsedProcessArgs = {
2083
- config,
2084
- progress: cliOptions.progress,
2085
- verbose: cliOptions.verbose,
2086
- upload: {
2087
- ...importedRc.upload,
2088
- ...cliOptions.upload
2089
- },
2090
- // we can't use a async rc file as yargs does not support it. see: https://github.com/yargs/yargs/issues/2234
2091
- // therefore this can't live in option defaults as the order would be `config`->`provided options`->default
2092
- // so we have to manually implement the order
2093
- persist: {
2094
- outputDir: cliOptions.persist?.outputDir || importedRc.persist?.outputDir || PERSIST_OUTPUT_DIR,
2095
- filename: cliOptions.persist?.filename || importedRc.persist?.filename || PERSIST_FILENAME,
2096
- format: coerceArray(
2097
- cliOptions.persist?.format ?? importedRc.persist?.format ?? PERSIST_FORMAT
2098
- )
2099
- },
2100
- plugins: filterPluginsByOnlyPluginsOption(importedRc.plugins, cliOptions),
2109
+ ...cliOptions,
2110
+ plugins: filterPluginsByOnlyPluginsOption(cliOptions.plugins, cliOptions),
2101
2111
  categories: filterCategoryByOnlyPluginsOption(
2102
- importedRc.categories,
2112
+ cliOptions.categories,
2103
2113
  cliOptions
2104
- ),
2105
- onlyPlugins: cliOptions.onlyPlugins
2114
+ )
2106
2115
  };
2107
2116
  return parsedProcessArgs;
2108
2117
  }
2109
2118
 
2110
2119
  // packages/cli/src/lib/middlewares.ts
2111
2120
  var middlewares = [
2112
- { middlewareFunction: coreConfigMiddleware }
2121
+ {
2122
+ middlewareFunction: coreConfigMiddleware,
2123
+ applyBeforeValidation: false
2124
+ },
2125
+ {
2126
+ middlewareFunction: onlyPluginsMiddleware,
2127
+ applyBeforeValidation: false
2128
+ }
2113
2129
  ];
2114
2130
 
2115
2131
  // packages/cli/src/lib/implementation/core-config.options.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.8.17",
3
+ "version": "0.8.19",
4
4
  "bin": {
5
5
  "code-pushup": "index.js"
6
6
  },
@@ -1,7 +1,6 @@
1
1
  import { CoreConfig } from '@code-pushup/models';
2
2
  import { GeneralCliOptions } from './global.model';
3
- import { OnlyPluginsOptions } from './only-plugins.model';
4
- export declare function coreConfigMiddleware<T extends Partial<GeneralCliOptions & CoreConfig & OnlyPluginsOptions>>(processArgs: T): Promise<{
3
+ export declare function coreConfigMiddleware<T extends Partial<GeneralCliOptions & CoreConfig>>(processArgs: T): Promise<{
5
4
  categories: {
6
5
  slug: string;
7
6
  refs: {
@@ -224,4 +223,4 @@ export declare function coreConfigMiddleware<T extends Partial<GeneralCliOptions
224
223
  } | undefined;
225
224
  } & {
226
225
  config: string;
227
- } & import("@code-pushup/core").GlobalOptions & OnlyPluginsOptions>;
226
+ } & import("@code-pushup/core").GlobalOptions>;
@@ -0,0 +1,227 @@
1
+ import { CoreConfig } from '@code-pushup/models';
2
+ import { GeneralCliOptions } from './global.model';
3
+ import { OnlyPluginsOptions } from './only-plugins.model';
4
+ export declare function onlyPluginsMiddleware<T extends Partial<GeneralCliOptions & CoreConfig & OnlyPluginsOptions>>(processArgs: T): {
5
+ categories: {
6
+ slug: string;
7
+ refs: {
8
+ slug: string;
9
+ weight: number;
10
+ type: "audit" | "group";
11
+ plugin: string;
12
+ }[];
13
+ title: string;
14
+ description?: string | undefined;
15
+ docsUrl?: string | undefined;
16
+ isBinary?: boolean | undefined;
17
+ }[];
18
+ plugins: {
19
+ slug: string;
20
+ title: string;
21
+ icon: "slug" | "file" | "command" | "search" | "blink" | "key" | "folder-robot" | "folder-src" | "folder-dist" | "folder-css" | "folder-sass" | "folder-images" | "folder-scripts" | "folder-node" | "folder-javascript" | "folder-json" | "folder-font" | "folder-bower" | "folder-test" | "folder-jinja" | "folder-markdown" | "folder-php" | "folder-phpmailer" | "folder-sublime" | "folder-docs" | "folder-git" | "folder-github" | "folder-gitlab" | "folder-vscode" | "folder-views" | "folder-vue" | "folder-vuepress" | "folder-expo" | "folder-config" | "folder-i18n" | "folder-components" | "folder-verdaccio" | "folder-aurelia" | "folder-resource" | "folder-lib" | "folder-theme" | "folder-webpack" | "folder-global" | "folder-public" | "folder-include" | "folder-docker" | "folder-database" | "folder-log" | "folder-target" | "folder-temp" | "folder-aws" | "folder-audio" | "folder-video" | "folder-kubernetes" | "folder-import" | "folder-export" | "folder-wakatime" | "folder-circleci" | "folder-wordpress" | "folder-gradle" | "folder-coverage" | "folder-class" | "folder-other" | "folder-lua" | "folder-typescript" | "folder-graphql" | "folder-routes" | "folder-ci" | "folder-benchmark" | "folder-messages" | "folder-less" | "folder-gulp" | "folder-python" | "folder-mojo" | "folder-moon" | "folder-debug" | "folder-fastlane" | "folder-plugin" | "folder-middleware" | "folder-controller" | "folder-ansible" | "folder-server" | "folder-client" | "folder-tasks" | "folder-android" | "folder-ios" | "folder-upload" | "folder-download" | "folder-tools" | "folder-helper" | "folder-serverless" | "folder-api" | "folder-app" | "folder-apollo" | "folder-archive" | "folder-batch" | "folder-buildkite" | "folder-cluster" | "folder-command" | "folder-constant" | "folder-container" | "folder-content" | "folder-context" | "folder-core" | "folder-delta" | "folder-dump" | "folder-examples" | "folder-environment" | "folder-functions" | "folder-generator" | "folder-hook" | "folder-job" | "folder-keys" | "folder-layout" | "folder-mail" | "folder-mappings" | "folder-meta" | "folder-changesets" | "folder-packages" | "folder-shared" | "folder-shader" | "folder-stack" | "folder-template" | "folder-utils" | "folder-supabase" | "folder-private" | "folder-linux" | "folder-windows" | "folder-macos" | "folder-error" | "folder-event" | "folder-secure" | "folder-custom" | "folder-mock" | "folder-syntax" | "folder-vm" | "folder-stylus" | "folder-flow" | "folder-rules" | "folder-review" | "folder-animation" | "folder-guard" | "folder-prisma" | "folder-pipe" | "folder-svg" | "folder-terraform" | "folder-mobile" | "folder-stencil" | "folder-firebase" | "folder-svelte" | "folder-update" | "folder-intellij" | "folder-azure-pipelines" | "folder-mjml" | "folder-admin" | "folder-scala" | "folder-connection" | "folder-quasar" | "folder-next" | "folder-cobol" | "folder-yarn" | "folder-husky" | "folder-storybook" | "folder-base" | "folder-cart" | "folder-home" | "folder-project" | "folder-interface" | "folder-netlify" | "folder-enum" | "folder-contract" | "folder-queue" | "folder-vercel" | "folder-cypress" | "folder-decorators" | "folder-java" | "folder-resolver" | "folder-angular" | "folder-unity" | "folder-pdf" | "folder-proto" | "folder-plastic" | "folder-gamemaker" | "folder-mercurial" | "folder-godot" | "folder-lottie" | "folder-taskfile" | "folder-robot-open" | "folder-src-open" | "folder-dist-open" | "folder-css-open" | "folder-sass-open" | "folder-images-open" | "folder-scripts-open" | "folder-node-open" | "folder-javascript-open" | "folder-json-open" | "folder-font-open" | "folder-bower-open" | "folder-test-open" | "folder-jinja-open" | "folder-markdown-open" | "folder-php-open" | "folder-phpmailer-open" | "folder-sublime-open" | "folder-docs-open" | "folder-git-open" | "folder-github-open" | "folder-gitlab-open" | "folder-vscode-open" | "folder-views-open" | "folder-vue-open" | "folder-vuepress-open" | "folder-expo-open" | "folder-config-open" | "folder-i18n-open" | "folder-components-open" | "folder-verdaccio-open" | "folder-aurelia-open" | "folder-resource-open" | "folder-lib-open" | "folder-theme-open" | "folder-webpack-open" | "folder-global-open" | "folder-public-open" | "folder-include-open" | "folder-docker-open" | "folder-database-open" | "folder-log-open" | "folder-target-open" | "folder-temp-open" | "folder-aws-open" | "folder-audio-open" | "folder-video-open" | "folder-kubernetes-open" | "folder-import-open" | "folder-export-open" | "folder-wakatime-open" | "folder-circleci-open" | "folder-wordpress-open" | "folder-gradle-open" | "folder-coverage-open" | "folder-class-open" | "folder-other-open" | "folder-lua-open" | "folder-typescript-open" | "folder-graphql-open" | "folder-routes-open" | "folder-ci-open" | "folder-benchmark-open" | "folder-messages-open" | "folder-less-open" | "folder-gulp-open" | "folder-python-open" | "folder-mojo-open" | "folder-moon-open" | "folder-debug-open" | "folder-fastlane-open" | "folder-plugin-open" | "folder-middleware-open" | "folder-controller-open" | "folder-ansible-open" | "folder-server-open" | "folder-client-open" | "folder-tasks-open" | "folder-android-open" | "folder-ios-open" | "folder-upload-open" | "folder-download-open" | "folder-tools-open" | "folder-helper-open" | "folder-serverless-open" | "folder-api-open" | "folder-app-open" | "folder-apollo-open" | "folder-archive-open" | "folder-batch-open" | "folder-buildkite-open" | "folder-cluster-open" | "folder-command-open" | "folder-constant-open" | "folder-container-open" | "folder-content-open" | "folder-context-open" | "folder-core-open" | "folder-delta-open" | "folder-dump-open" | "folder-examples-open" | "folder-environment-open" | "folder-functions-open" | "folder-generator-open" | "folder-hook-open" | "folder-job-open" | "folder-keys-open" | "folder-layout-open" | "folder-mail-open" | "folder-mappings-open" | "folder-meta-open" | "folder-changesets-open" | "folder-packages-open" | "folder-shared-open" | "folder-shader-open" | "folder-stack-open" | "folder-template-open" | "folder-utils-open" | "folder-supabase-open" | "folder-private-open" | "folder-linux-open" | "folder-windows-open" | "folder-macos-open" | "folder-error-open" | "folder-event-open" | "folder-secure-open" | "folder-custom-open" | "folder-mock-open" | "folder-syntax-open" | "folder-vm-open" | "folder-stylus-open" | "folder-flow-open" | "folder-rules-open" | "folder-review-open" | "folder-animation-open" | "folder-guard-open" | "folder-prisma-open" | "folder-pipe-open" | "folder-svg-open" | "folder-terraform-open" | "folder-mobile-open" | "folder-stencil-open" | "folder-firebase-open" | "folder-svelte-open" | "folder-update-open" | "folder-intellij-open" | "folder-azure-pipelines-open" | "folder-mjml-open" | "folder-admin-open" | "folder-scala-open" | "folder-connection-open" | "folder-quasar-open" | "folder-next-open" | "folder-cobol-open" | "folder-yarn-open" | "folder-husky-open" | "folder-storybook-open" | "folder-base-open" | "folder-cart-open" | "folder-home-open" | "folder-project-open" | "folder-interface-open" | "folder-netlify-open" | "folder-enum-open" | "folder-contract-open" | "folder-queue-open" | "folder-vercel-open" | "folder-cypress-open" | "folder-decorators-open" | "folder-java-open" | "folder-resolver-open" | "folder-angular-open" | "folder-unity-open" | "folder-pdf-open" | "folder-proto-open" | "folder-plastic-open" | "folder-gamemaker-open" | "folder-mercurial-open" | "folder-godot-open" | "folder-lottie-open" | "folder-taskfile-open" | "html" | "pug" | "markdown" | "css" | "sass" | "less" | "json" | "hjson" | "jinja" | "proto" | "sublime" | "twine" | "yaml" | "xml" | "image" | "javascript" | "react" | "react_ts" | "routing" | "settings" | "typescript-def" | "markojs" | "astro" | "pdf" | "table" | "vscode" | "visualstudio" | "database" | "kusto" | "csharp" | "qsharp" | "zip" | "vala" | "zig" | "exe" | "hex" | "java" | "jar" | "javaclass" | "c" | "h" | "cpp" | "hpp" | "objective-c" | "objective-cpp" | "rc" | "go" | "python" | "python-misc" | "url" | "console" | "powershell" | "gradle" | "word" | "certificate" | "font" | "lib" | "ruby" | "fsharp" | "swift" | "arduino" | "docker" | "tex" | "powerpoint" | "video" | "virtual" | "email" | "audio" | "coffee" | "document" | "graphql" | "rust" | "raml" | "xaml" | "haskell" | "kotlin" | "otne" | "git" | "lua" | "clojure" | "groovy" | "r" | "dart" | "dart_generated" | "actionscript" | "mxml" | "autohotkey" | "flash" | "swc" | "cmake" | "assembly" | "vue" | "ocaml" | "odin" | "javascript-map" | "css-map" | "lock" | "handlebars" | "perl" | "haxe" | "test-ts" | "test-jsx" | "test-js" | "angular" | "angular-component" | "angular-guard" | "angular-service" | "angular-pipe" | "angular-directive" | "angular-resolver" | "puppet" | "elixir" | "livescript" | "erlang" | "twig" | "julia" | "elm" | "purescript" | "smarty" | "stylus" | "reason" | "bucklescript" | "merlin" | "verilog" | "mathematica" | "wolframlanguage" | "nunjucks" | "robot" | "solidity" | "autoit" | "haml" | "yang" | "mjml" | "terraform" | "laravel" | "applescript" | "cake" | "cucumber" | "nim" | "apiblueprint" | "riot" | "vfl" | "kl" | "postcss" | "todo" | "coldfusion" | "cabal" | "nix" | "slim" | "http" | "restql" | "kivy" | "graphcool" | "sbt" | "android" | "tune" | "gitlab" | "jenkins" | "figma" | "crystal" | "drone" | "cuda" | "log" | "dotjs" | "ejs" | "wakatime" | "processing" | "storybook" | "wepy" | "hcl" | "san" | "django" | "red" | "makefile" | "foxpro" | "i18n" | "webassembly" | "jupyter" | "d" | "mdx" | "mdsvex" | "ballerina" | "racket" | "bazel" | "mint" | "velocity" | "godot" | "godot-assets" | "azure-pipelines" | "azure" | "vagrant" | "prisma" | "razor" | "abc" | "asciidoc" | "edge" | "scheme" | "lisp" | "3d" | "svg" | "svelte" | "vim" | "moonscript" | "advpl_prw" | "advpl_ptm" | "advpl_tlpp" | "advpl_include" | "disc" | "fortran" | "tcl" | "liquid" | "prolog" | "coconut" | "sketch" | "pawn" | "forth" | "uml" | "meson" | "dhall" | "sml" | "opam" | "imba" | "drawio" | "pascal" | "shaderlab" | "sas" | "nuget" | "denizenscript" | "nginx" | "minecraft" | "rescript" | "rescript-interface" | "brainfuck" | "bicep" | "cobol" | "grain" | "lolcode" | "idris" | "pipeline" | "opa" | "windicss" | "scala" | "lilypond" | "vlang" | "chess" | "gemini" | "tsconfig" | "tauri" | "jsconfig" | "ada" | "horusec" | "coala" | "dinophp" | "teal" | "template" | "shader" | "siyuan" | "ndst" | "tobi" | "gleam" | "steadybit" | "tree" | "cadence" | "antlr" | "stylable" | "pinejs" | "taskfile" | "gamemaker" | "tldraw" | "typst" | "mermaid" | "mojo" | "roblox" | "spwn" | "templ" | "chrome" | "stan" | "abap" | "lottie" | "apps-script" | "playwright" | "go-mod" | "gemfile" | "rubocop" | "rspec" | "semgrep" | "vue-config" | "nuxt" | "vercel" | "verdaccio" | "next" | "remix" | "posthtml" | "webpack" | "ionic" | "gulp" | "nodejs" | "npm" | "yarn" | "turborepo" | "babel" | "blitz" | "contributing" | "readme" | "changelog" | "architecture" | "credits" | "authors" | "flow" | "favicon" | "karma" | "bithound" | "svgo" | "appveyor" | "travis" | "codecov" | "sonarcloud" | "protractor" | "fusebox" | "heroku" | "editorconfig" | "bower" | "eslint" | "conduct" | "watchman" | "aurelia" | "auto" | "mocha" | "firebase" | "rollup" | "hack" | "hardhat" | "stylelint" | "code-climate" | "prettier" | "renovate" | "apollo" | "nodemon" | "webhint" | "browserlist" | "snyk" | "sequelize" | "gatsby" | "circleci" | "cloudfoundry" | "grunt" | "jest" | "fastlane" | "helm" | "wallaby" | "stencil" | "semantic-release" | "bitbucket" | "istanbul" | "tailwindcss" | "buildkite" | "netlify" | "nest" | "moon" | "percy" | "gitpod" | "codeowners" | "gcp" | "husky" | "tilt" | "capacitor" | "adonis" | "commitlint" | "buck" | "nrwl" | "dune" | "roadmap" | "stryker" | "modernizr" | "stitches" | "replit" | "snowpack" | "quasar" | "dependabot" | "vite" | "vitest" | "lerna" | "textlint" | "sentry" | "phpunit" | "php-cs-fixer" | "robots" | "maven" | "serverless" | "supabase" | "ember" | "poetry" | "parcel" | "astyle" | "lighthouse" | "svgr" | "rome" | "cypress" | "plop" | "tobimake" | "pnpm" | "gridsome" | "caddy" | "bun" | "nano-staged" | "craco" | "mercurial" | "deno" | "plastic" | "unocss" | "ifanr-cloud" | "concourse" | "werf" | "panda" | "biome" | "esbuild" | "puppeteer" | "kubernetes" | "matlab" | "diff" | "typescript" | "php" | "salesforce" | "blink_light" | "jinja_light" | "crystal_light" | "drone_light" | "wakatime_light" | "hcl_light" | "uml_light" | "chess_light" | "tldraw_light" | "rubocop_light" | "vercel_light" | "next_light" | "remix_light" | "turborepo_light" | "auto_light" | "stylelint_light" | "code-climate_light" | "browserlist_light" | "circleci_light" | "semantic-release_light" | "netlify_light" | "stitches_light" | "snowpack_light" | "pnpm_light" | "bun_light" | "nano-staged_light" | "deno_light" | "folder-jinja_light" | "folder-intellij_light" | "folder-jinja-open_light" | "folder-intellij-open_light" | "folder" | "folder-open" | "folder-root" | "folder-root-open" | "php_elephant" | "php_elephant_pink" | "go_gopher" | "nodejs_alt" | "silverstripe";
22
+ runner: ({
23
+ command: string;
24
+ outputFile: string;
25
+ args?: string[] | undefined;
26
+ outputTransform?: ((args_0: unknown, ...args_1: unknown[]) => {
27
+ slug: string;
28
+ value: number;
29
+ score: number;
30
+ displayValue?: string | undefined;
31
+ details?: {
32
+ issues: {
33
+ message: string;
34
+ severity: "error" | "info" | "warning";
35
+ source?: {
36
+ file: string;
37
+ position?: {
38
+ startLine: number;
39
+ startColumn?: number | undefined;
40
+ endLine?: number | undefined;
41
+ endColumn?: number | undefined;
42
+ } | undefined;
43
+ } | undefined;
44
+ }[];
45
+ } | undefined;
46
+ }[] | Promise<{
47
+ slug: string;
48
+ value: number;
49
+ score: number;
50
+ displayValue?: string | undefined;
51
+ details?: {
52
+ issues: {
53
+ message: string;
54
+ severity: "error" | "info" | "warning";
55
+ source?: {
56
+ file: string;
57
+ position?: {
58
+ startLine: number;
59
+ startColumn?: number | undefined;
60
+ endLine?: number | undefined;
61
+ endColumn?: number | undefined;
62
+ } | undefined;
63
+ } | undefined;
64
+ }[];
65
+ } | undefined;
66
+ }[]>) | undefined;
67
+ } | ((args_0: ((args_0: unknown, ...args_1: unknown[]) => void) | undefined, ...args_1: unknown[]) => {
68
+ slug: string;
69
+ value: number;
70
+ score: number;
71
+ displayValue?: string | undefined;
72
+ details?: {
73
+ issues: {
74
+ message: string;
75
+ severity: "error" | "info" | "warning";
76
+ source?: {
77
+ file: string;
78
+ position?: {
79
+ startLine: number;
80
+ startColumn?: number | undefined;
81
+ endLine?: number | undefined;
82
+ endColumn?: number | undefined;
83
+ } | undefined;
84
+ } | undefined;
85
+ }[];
86
+ } | undefined;
87
+ }[] | Promise<{
88
+ slug: string;
89
+ value: number;
90
+ score: number;
91
+ displayValue?: string | undefined;
92
+ details?: {
93
+ issues: {
94
+ message: string;
95
+ severity: "error" | "info" | "warning";
96
+ source?: {
97
+ file: string;
98
+ position?: {
99
+ startLine: number;
100
+ startColumn?: number | undefined;
101
+ endLine?: number | undefined;
102
+ endColumn?: number | undefined;
103
+ } | undefined;
104
+ } | undefined;
105
+ }[];
106
+ } | undefined;
107
+ }[]>)) & ({
108
+ command: string;
109
+ outputFile: string;
110
+ args?: string[] | undefined;
111
+ outputTransform?: ((args_0: unknown, ...args_1: unknown[]) => {
112
+ slug: string;
113
+ value: number;
114
+ score: number;
115
+ displayValue?: string | undefined;
116
+ details?: {
117
+ issues: {
118
+ message: string;
119
+ severity: "error" | "info" | "warning";
120
+ source?: {
121
+ file: string;
122
+ position?: {
123
+ startLine: number;
124
+ startColumn?: number | undefined;
125
+ endLine?: number | undefined;
126
+ endColumn?: number | undefined;
127
+ } | undefined;
128
+ } | undefined;
129
+ }[];
130
+ } | undefined;
131
+ }[] | Promise<{
132
+ slug: string;
133
+ value: number;
134
+ score: number;
135
+ displayValue?: string | undefined;
136
+ details?: {
137
+ issues: {
138
+ message: string;
139
+ severity: "error" | "info" | "warning";
140
+ source?: {
141
+ file: string;
142
+ position?: {
143
+ startLine: number;
144
+ startColumn?: number | undefined;
145
+ endLine?: number | undefined;
146
+ endColumn?: number | undefined;
147
+ } | undefined;
148
+ } | undefined;
149
+ }[];
150
+ } | undefined;
151
+ }[]>) | undefined;
152
+ } | ((args_0: ((args_0: unknown, ...args_1: unknown[]) => void) | undefined, ...args_1: unknown[]) => {
153
+ slug: string;
154
+ value: number;
155
+ score: number;
156
+ displayValue?: string | undefined;
157
+ details?: {
158
+ issues: {
159
+ message: string;
160
+ severity: "error" | "info" | "warning";
161
+ source?: {
162
+ file: string;
163
+ position?: {
164
+ startLine: number;
165
+ startColumn?: number | undefined;
166
+ endLine?: number | undefined;
167
+ endColumn?: number | undefined;
168
+ } | undefined;
169
+ } | undefined;
170
+ }[];
171
+ } | undefined;
172
+ }[] | Promise<{
173
+ slug: string;
174
+ value: number;
175
+ score: number;
176
+ displayValue?: string | undefined;
177
+ details?: {
178
+ issues: {
179
+ message: string;
180
+ severity: "error" | "info" | "warning";
181
+ source?: {
182
+ file: string;
183
+ position?: {
184
+ startLine: number;
185
+ startColumn?: number | undefined;
186
+ endLine?: number | undefined;
187
+ endColumn?: number | undefined;
188
+ } | undefined;
189
+ } | undefined;
190
+ }[];
191
+ } | undefined;
192
+ }[]>) | undefined);
193
+ audits: {
194
+ slug: string;
195
+ title: string;
196
+ description?: string | undefined;
197
+ docsUrl?: string | undefined;
198
+ }[];
199
+ description?: string | undefined;
200
+ docsUrl?: string | undefined;
201
+ packageName?: string | undefined;
202
+ version?: string | undefined;
203
+ groups?: {
204
+ slug: string;
205
+ refs: {
206
+ slug: string;
207
+ weight: number;
208
+ }[];
209
+ title: string;
210
+ description?: string | undefined;
211
+ docsUrl?: string | undefined;
212
+ }[] | undefined;
213
+ }[];
214
+ persist?: {
215
+ outputDir?: string | undefined;
216
+ filename?: string | undefined;
217
+ format?: ("json" | "md")[] | undefined;
218
+ } | undefined;
219
+ upload?: {
220
+ server: string;
221
+ apiKey: string;
222
+ organization: string;
223
+ project: string;
224
+ } | undefined;
225
+ } & {
226
+ config: string;
227
+ } & import("@code-pushup/core").GlobalOptions & OnlyPluginsOptions;
@@ -1,4 +1,5 @@
1
1
  import { MiddlewareFunction } from 'yargs';
2
2
  export declare const middlewares: {
3
3
  middlewareFunction: MiddlewareFunction;
4
+ applyBeforeValidation: boolean;
4
5
  }[];
@@ -7,6 +7,6 @@ export declare const options: {
7
7
  "upload.apiKey": import("yargs").Options;
8
8
  "upload.server": import("yargs").Options;
9
9
  progress: import("yargs").Options;
10
- verbose: import("yargs").Options;
11
10
  config: import("yargs").Options;
11
+ verbose: import("yargs").Options;
12
12
  };