From 55963c4714d24f1d9b2d1d8ed1f0bf449a250edb Mon Sep 17 00:00:00 2001 From: Heikki Hellgren Date: Wed, 31 Jan 2024 10:15:45 +0200 Subject: [PATCH] feat: move knip reports under own command Signed-off-by: Heikki Hellgren --- .changeset/friendly-terms-love.md | 250 +----------------- .gitignore | 5 +- package.json | 1 + packages/app-defaults/knip-report.md | 13 +- packages/app-next/knip-report.md | 6 +- packages/app/knip-report.md | 6 +- packages/backend-tasks/knip-report.md | 11 +- packages/backend/knip-report.md | 2 +- packages/cli/knip-report.md | 34 +-- packages/core-app-api/knip-report.md | 3 +- packages/core-compat-api/knip-report.md | 3 +- packages/core-components/knip-report.md | 6 +- packages/core-plugin-api/knip-report.md | 3 +- packages/dev-utils/knip-report.md | 3 +- packages/eslint-plugin/knip-report.md | 11 +- packages/frontend-app-api/knip-report.md | 13 +- packages/frontend-plugin-api/knip-report.md | 3 +- packages/frontend-test-utils/knip-report.md | 9 +- packages/integration-react/knip-report.md | 23 +- packages/repo-tools/cli-report.md | 11 + .../src/commands/api-reports/api-extractor.ts | 101 +------ .../commands/api-reports/api-reports.test.ts | 1 - .../src/commands/api-reports/api-reports.ts | 9 - packages/repo-tools/src/commands/index.ts | 11 + .../commands/knip-reports/knip-extractor.ts | 175 ++++++++++++ .../src/commands/knip-reports/knip-reports.ts | 54 ++++ packages/repo-tools/src/commands/util.ts | 41 +++ packages/test-utils/knip-report.md | 11 +- packages/theme/knip-report.md | 13 +- packages/version-bridge/knip-report.md | 11 +- plugins/adr/knip-report.md | 13 +- plugins/airbrake-backend/knip-report.md | 6 - plugins/airbrake/knip-report.md | 27 +- plugins/allure/knip-report.md | 18 +- plugins/analytics-module-ga/knip-report.md | 21 +- plugins/analytics-module-ga4/knip-report.md | 23 +- .../knip-report.md | 18 +- plugins/apache-airflow/knip-report.md | 20 +- .../knip-report.md | 9 +- plugins/api-docs/knip-report.md | 4 +- plugins/apollo-explorer/knip-report.md | 14 +- .../knip-report.md | 14 +- .../knip-report.md | 18 ++ .../knip-report.md | 14 +- .../knip-report.md | 14 +- .../knip-report.md | 18 +- .../knip-report.md | 14 +- .../knip-report.md | 24 ++ .../knip-report.md | 14 +- .../knip-report.md | 26 +- .../knip-report.md | 20 +- plugins/auth-backend/knip-report.md | 11 +- plugins/azure-devops-backend/knip-report.md | 6 - plugins/azure-devops/knip-report.md | 16 +- plugins/azure-sites-backend/knip-report.md | 8 +- plugins/azure-sites-common/knip-report.md | 6 + plugins/azure-sites/knip-report.md | 26 +- plugins/badges-backend/knip-report.md | 3 +- plugins/badges/knip-report.md | 12 +- plugins/bazaar-backend/knip-report.md | 6 - plugins/bazaar/knip-report.md | 13 +- plugins/bitrise/knip-report.md | 4 +- .../knip-report.md | 3 +- plugins/catalog-backend/knip-report.md | 19 +- plugins/catalog-graph/knip-report.md | 14 +- plugins/catalog-import/knip-report.md | 4 +- plugins/catalog-react/knip-report.md | 4 +- .../knip-report.md | 12 +- plugins/catalog/knip-report.md | 4 +- plugins/circleci/knip-report.md | 9 +- plugins/cloudbuild/knip-report.md | 16 +- plugins/code-climate/knip-report.md | 22 +- plugins/code-coverage-backend/knip-report.md | 6 - plugins/code-coverage/knip-report.md | 16 +- plugins/codescene/knip-report.md | 20 +- plugins/config-schema/knip-report.md | 14 +- plugins/cost-insights/knip-report.md | 4 +- plugins/devtools-backend/knip-report.md | 6 - plugins/devtools/knip-report.md | 12 +- plugins/dynatrace/knip-report.md | 18 +- .../entity-feedback-backend/knip-report.md | 10 +- plugins/entity-feedback/knip-report.md | 3 +- plugins/entity-validation/knip-report.md | 15 +- .../example-todo-list-backend/knip-report.md | 6 - plugins/example-todo-list/knip-report.md | 13 +- plugins/explore-backend/knip-report.md | 16 +- plugins/explore-react/knip-report.md | 15 +- plugins/explore/knip-report.md | 21 +- plugins/firehydrant/knip-report.md | 18 +- plugins/fossa/knip-report.md | 20 +- plugins/gcalendar/knip-report.md | 18 +- plugins/gcp-projects/knip-report.md | 14 +- plugins/git-release-manager/knip-report.md | 16 +- plugins/github-actions/knip-report.md | 18 +- plugins/github-deployments/knip-report.md | 20 +- plugins/github-issues/knip-report.md | 16 +- .../github-pull-requests-board/knip-report.md | 15 +- plugins/gitops-profiles/knip-report.md | 18 +- plugins/gocd/knip-report.md | 4 +- plugins/graphiql/knip-report.md | 18 +- plugins/graphql-voyager/knip-report.md | 15 +- plugins/home/knip-report.md | 5 +- plugins/ilert/knip-report.md | 14 +- plugins/jenkins-backend/knip-report.md | 6 - plugins/jenkins/knip-report.md | 17 +- plugins/kafka/knip-report.md | 18 +- plugins/kubernetes-backend/knip-report.md | 6 +- plugins/kubernetes-node/knip-report.md | 14 +- plugins/kubernetes-react/knip-report.md | 19 +- plugins/kubernetes/knip-report.md | 15 +- plugins/lighthouse/knip-report.md | 20 +- plugins/linguist-backend/knip-report.md | 3 +- plugins/linguist/knip-report.md | 14 +- plugins/microsoft-calendar/knip-report.md | 14 +- plugins/newrelic-dashboard/knip-report.md | 11 +- plugins/newrelic/knip-report.md | 18 +- plugins/nomad-backend/knip-report.md | 6 - plugins/nomad/knip-report.md | 13 +- plugins/octopus-deploy/knip-report.md | 14 +- plugins/opencost/knip-report.md | 3 +- plugins/org-react/knip-report.md | 3 +- plugins/org/knip-report.md | 25 +- plugins/pagerduty/knip-report.md | 18 +- plugins/periskop-backend/knip-report.md | 6 - plugins/periskop/knip-report.md | 14 +- plugins/permission-react/knip-report.md | 13 +- plugins/playlist-backend/knip-report.md | 10 +- plugins/playlist/knip-report.md | 22 +- plugins/proxy-backend/knip-report.md | 3 +- plugins/puppetdb/knip-report.md | 18 +- plugins/rollbar-backend/knip-report.md | 3 +- plugins/rollbar/knip-report.md | 16 +- plugins/scaffolder-react/knip-report.md | 3 +- plugins/scaffolder/knip-report.md | 8 +- plugins/search-backend/knip-report.md | 7 - plugins/search-react/knip-report.md | 10 +- plugins/search/knip-report.md | 5 +- plugins/sentry/knip-report.md | 16 +- plugins/shortcuts/knip-report.md | 16 +- plugins/signals-backend/knip-report.md | 19 ++ plugins/signals-node/knip-report.md | 20 ++ plugins/signals-react/knip-report.md | 16 ++ plugins/signals/knip-report.md | 23 ++ plugins/sonarqube-backend/knip-report.md | 6 - plugins/sonarqube/knip-report.md | 26 +- plugins/splunk-on-call/knip-report.md | 18 +- plugins/stack-overflow/knip-report.md | 9 +- plugins/stackstorm/knip-report.md | 20 +- plugins/tech-insights/knip-report.md | 14 +- plugins/tech-radar/knip-report.md | 4 +- .../techdocs-addons-test-utils/knip-report.md | 11 +- .../knip-report.md | 3 +- plugins/techdocs-react/knip-report.md | 15 +- plugins/techdocs/knip-report.md | 4 +- plugins/todo/knip-report.md | 21 +- plugins/user-settings-backend/knip-report.md | 8 - plugins/user-settings/knip-report.md | 5 +- plugins/vault-backend/knip-report.md | 25 +- plugins/vault/knip-report.md | 19 +- plugins/xcmetrics/knip-report.md | 4 +- yarn.lock | 49 +--- 161 files changed, 1128 insertions(+), 1472 deletions(-) create mode 100644 packages/repo-tools/src/commands/knip-reports/knip-extractor.ts create mode 100644 packages/repo-tools/src/commands/knip-reports/knip-reports.ts create mode 100644 packages/repo-tools/src/commands/util.ts create mode 100644 plugins/auth-backend-module-aws-alb-provider/knip-report.md create mode 100644 plugins/auth-backend-module-oidc-provider/knip-report.md create mode 100644 plugins/signals-backend/knip-report.md create mode 100644 plugins/signals-node/knip-report.md create mode 100644 plugins/signals-react/knip-report.md create mode 100644 plugins/signals/knip-report.md diff --git a/.changeset/friendly-terms-love.md b/.changeset/friendly-terms-love.md index ed53fcee31..18fc399740 100644 --- a/.changeset/friendly-terms-love.md +++ b/.changeset/friendly-terms-love.md @@ -1,253 +1,5 @@ --- -'@backstage/plugin-scaffolder-backend-module-confluence-to-markdown': patch -'@backstage/plugin-catalog-backend-module-scaffolder-entity-model': patch -'@backstage/plugin-search-backend-module-stack-overflow-collator': patch -'@backstage/plugin-catalog-backend-module-incremental-ingestion': patch -'@backstage/plugin-permission-backend-module-allow-all-policy': patch -'@backstage/plugin-auth-backend-module-oauth2-proxy-provider': patch -'@backstage/plugin-auth-backend-module-vmware-cloud-provider': patch -'@backstage/plugin-catalog-backend-module-backstage-openapi': patch -'@backstage/plugin-catalog-backend-module-bitbucket-server': patch -'@backstage/plugin-auth-backend-module-atlassian-provider': patch -'@backstage/plugin-auth-backend-module-microsoft-provider': patch -'@backstage/plugin-catalog-backend-module-bitbucket-cloud': patch -'@backstage/plugin-scaffolder-backend-module-cookiecutter': patch -'@backstage/plugin-auth-backend-module-pinniped-provider': patch -'@backstage/plugin-events-backend-module-bitbucket-cloud': patch -'@backstage/plugin-auth-backend-module-gcp-iap-provider': patch -'@backstage/plugin-auth-backend-module-github-provider': patch -'@backstage/plugin-auth-backend-module-gitlab-provider': patch -'@backstage/plugin-auth-backend-module-google-provider': patch -'@backstage/plugin-auth-backend-module-oauth2-provider': patch -'@backstage/plugin-scaffolder-backend-module-bitbucket': patch -'@backstage/plugin-search-backend-module-elasticsearch': patch -'@backstage/plugin-tech-insights-backend-module-jsonfc': patch -'@backstage/plugin-catalog-backend-module-unprocessed': patch -'@backstage/plugin-analytics-module-newrelic-browser': patch -'@backstage/plugin-auth-backend-module-okta-provider': patch -'@backstage/plugin-catalog-backend-module-github-org': patch -'@backstage/plugin-catalog-backend-module-bitbucket': patch -'@backstage/plugin-scaffolder-backend-module-gerrit': patch -'@backstage/plugin-scaffolder-backend-module-github': patch -'@backstage/plugin-scaffolder-backend-module-gitlab': patch -'@backstage/plugin-scaffolder-backend-module-sentry': patch -'@backstage/plugin-scaffolder-backend-module-yeoman': patch -'@backstage/plugin-catalog-backend-module-puppetdb': patch -'@backstage/plugin-scaffolder-backend-module-azure': patch -'@backstage/plugin-scaffolder-backend-module-rails': patch -'@backstage/plugin-api-docs-module-protoc-gen-doc': patch -'@backstage/plugin-catalog-backend-module-msgraph': patch -'@backstage/plugin-catalog-backend-module-openapi': patch -'@backstage/plugin-search-backend-module-techdocs': patch -'@backstage/plugin-techdocs-module-addons-contrib': patch -'@backstage/plugin-catalog-backend-module-gerrit': patch -'@backstage/plugin-catalog-backend-module-github': patch -'@backstage/plugin-catalog-backend-module-gitlab': patch -'@backstage/plugin-cicd-statistics-module-gitlab': patch -'@backstage/plugin-events-backend-module-aws-sqs': patch -'@backstage/plugin-search-backend-module-catalog': patch -'@backstage/plugin-search-backend-module-explore': patch -'@backstage/plugin-catalog-backend-module-azure': patch -'@backstage/plugin-catalog-unprocessed-entities': patch -'@backstage/plugin-events-backend-module-gerrit': patch -'@backstage/plugin-events-backend-module-github': patch -'@backstage/plugin-events-backend-module-gitlab': patch -'@backstage/plugin-catalog-backend-module-ldap': patch -'@backstage/plugin-events-backend-module-azure': patch -'@backstage/plugin-catalog-backend-module-aws': patch -'@backstage/plugin-catalog-backend-module-gcp': patch -'@backstage/plugin-github-pull-requests-board': patch -'@backstage/plugin-techdocs-addons-test-utils': patch -'@backstage/plugin-events-backend-test-utils': patch -'@backstage/plugin-search-backend-module-pg': patch -'@backstage/plugin-entity-feedback-backend': patch -'@backstage/backend-openapi-utils': patch -'@backstage/plugin-bitbucket-cloud-common': patch -'@backstage/plugin-entity-feedback-common': patch -'@backstage/plugin-stack-overflow-backend': patch -'@backstage/integration-aws-node': patch -'@backstage/plugin-code-coverage-backend': patch -'@backstage/plugin-tech-insights-backend': patch -'@backstage/plugin-user-settings-backend': patch -'@backstage/frontend-plugin-api': patch -'@backstage/frontend-test-utils': patch -'@backstage/plugin-analytics-module-ga4': patch -'@backstage/plugin-azure-devops-backend': patch -'@backstage/plugin-cost-insights-common': patch -'@backstage/plugin-tech-insights-common': patch -'@backstage/backend-plugin-api': patch -'@backstage/backend-test-utils': patch -'@backstage/plugin-analytics-module-ga': patch -'@backstage/plugin-azure-devops-common': patch -'@backstage/plugin-azure-sites-backend': patch -'@backstage/plugin-git-release-manager': patch -'@backstage/plugin-search-backend-node': patch -'@backstage/backend-dev-utils': patch -'@backstage/integration-react': patch -'@backstage/release-manifests': patch -'@backstage/plugin-azure-sites-common': patch -'@backstage/plugin-github-deployments': patch -'@backstage/plugin-kubernetes-backend': patch -'@backstage/plugin-kubernetes-cluster': patch -'@backstage/plugin-lighthouse-backend': patch -'@backstage/plugin-microsoft-calendar': patch -'@backstage/plugin-newrelic-dashboard': patch -'@backstage/plugin-permission-backend': patch -'@backstage/plugin-scaffolder-backend': patch -'@backstage/plugin-tech-insights-node': patch -'@backstage/backend-defaults': patch -'@backstage/frontend-app-api': patch -'@backstage/plugin-entity-validation': patch -'@backstage/plugin-kubernetes-common': patch -'@backstage/plugin-lighthouse-common': patch -'@backstage/plugin-permission-common': patch -'@backstage/plugin-scaffolder-common': patch -'@backstage/plugin-sonarqube-backend': patch -'@backstage/backend-app-api': patch -'@backstage/core-compat-api': patch -'@backstage/core-components': patch -'@backstage/core-plugin-api': patch -'@backstage/plugin-airbrake-backend': patch -'@backstage/plugin-devtools-backend': patch -'@backstage/plugin-kubernetes-react': patch -'@backstage/plugin-linguist-backend': patch -'@backstage/plugin-periskop-backend': patch -'@backstage/plugin-permission-react': patch -'@backstage/plugin-playlist-backend': patch -'@backstage/plugin-scaffolder-react': patch -'@backstage/plugin-techdocs-backend': patch -'@backstage/backend-common': patch -'@backstage/catalog-client': patch -'@backstage/e2e-test-utils': patch -'@backstage/version-bridge': patch -'@backstage/plugin-apollo-explorer': patch -'@backstage/plugin-catalog-backend': patch -'@backstage/plugin-cicd-statistics': patch -'@backstage/plugin-devtools-common': patch -'@backstage/plugin-entity-feedback': patch -'@backstage/plugin-explore-backend': patch -'@backstage/plugin-gitops-profiles': patch -'@backstage/plugin-graphql-voyager': patch -'@backstage/plugin-jenkins-backend': patch -'@backstage/plugin-kubernetes-node': patch -'@backstage/plugin-linguist-common': patch -'@backstage/plugin-permission-node': patch -'@backstage/plugin-playlist-common': patch -'@backstage/plugin-rollbar-backend': patch -'@backstage/plugin-scaffolder-node': patch -'@backstage/plugin-sonarqube-react': patch -'@backstage/backend-tasks': patch -'@backstage/catalog-model': patch -'@backstage/config-loader': patch -'@backstage/eslint-plugin': patch -'@backstage/plugin-apache-airflow': patch -'@backstage/plugin-badges-backend': patch -'@backstage/plugin-bazaar-backend': patch -'@backstage/plugin-catalog-common': patch -'@backstage/plugin-catalog-import': patch -'@backstage/plugin-events-backend': patch -'@backstage/plugin-explore-common': patch -'@backstage/plugin-github-actions': patch -'@backstage/plugin-jenkins-common': patch -'@backstage/plugin-octopus-deploy': patch -'@backstage/plugin-search-backend': patch -'@backstage/plugin-splunk-on-call': patch -'@backstage/plugin-stack-overflow': patch -'@backstage/plugin-techdocs-react': patch -'@backstage/app-defaults': patch -'@backstage/core-app-api': patch -'@techdocs/cli': patch -'@backstage/plugin-catalog-graph': patch -'@backstage/plugin-catalog-react': patch -'@backstage/plugin-code-coverage': patch -'@backstage/plugin-config-schema': patch -'@backstage/plugin-cost-insights': patch -'@backstage/plugin-explore-react': patch -'@backstage/plugin-github-issues': patch -'@backstage/plugin-kafka-backend': patch -'@backstage/plugin-nomad-backend': patch -'@backstage/plugin-proxy-backend': patch -'@backstage/plugin-search-common': patch -'@backstage/plugin-tech-insights': patch -'@backstage/plugin-techdocs-node': patch -'@backstage/plugin-user-settings': patch -'@backstage/plugin-vault-backend': patch -'@backstage/integration': patch -'@backstage/plugin-auth-backend': patch -'@backstage/plugin-azure-devops': patch -'@backstage/plugin-catalog-node': patch -'@backstage/plugin-code-climate': patch -'@backstage/plugin-gcp-projects': patch -'@backstage/plugin-search-react': patch -'@backstage/plugin-todo-backend': patch -'@backstage/cli-common': patch -'@backstage/create-app': patch '@backstage/repo-tools': patch -'@backstage/test-utils': patch -'@backstage/plugin-adr-backend': patch -'@backstage/plugin-app-backend': patch -'@backstage/plugin-azure-sites': patch -'@backstage/plugin-events-node': patch -'@backstage/plugin-firehydrant': patch -'@backstage/dev-utils': patch -'@backstage/plugin-adr-common': patch -'@backstage/plugin-cloudbuild': patch -'@backstage/plugin-home-react': patch -'@backstage/plugin-kubernetes': patch -'@backstage/plugin-lighthouse': patch -'@backstage/plugin-scaffolder': patch -'@backstage/plugin-stackstorm': patch -'@backstage/plugin-tech-radar': patch -'@backstage/plugin-vault-node': patch -'@backstage/cli-node': patch -'@backstage/codemods': patch -'@backstage/plugin-auth-node': patch -'@backstage/plugin-codescene': patch -'@backstage/plugin-dynatrace': patch -'@backstage/plugin-gcalendar': patch -'@backstage/plugin-org-react': patch -'@backstage/plugin-pagerduty': patch -'@backstage/plugin-shortcuts': patch -'@backstage/plugin-sonarqube': patch -'@backstage/plugin-xcmetrics': patch -'@backstage/plugin-airbrake': patch -'@backstage/plugin-api-docs': patch -'@backstage/plugin-app-node': patch -'@backstage/plugin-circleci': patch -'@backstage/plugin-devtools': patch -'@backstage/plugin-graphiql': patch -'@backstage/plugin-linguist': patch -'@backstage/plugin-newrelic': patch -'@backstage/plugin-opencost': patch -'@backstage/plugin-periskop': patch -'@backstage/plugin-playlist': patch -'@backstage/plugin-puppetdb': patch -'@backstage/plugin-techdocs': patch -'@backstage/config': patch -'@backstage/errors': patch -'@backstage/plugin-bitrise': patch -'@backstage/plugin-catalog': patch -'@backstage/plugin-explore': patch -'@backstage/plugin-jenkins': patch -'@backstage/plugin-rollbar': patch -'@backstage/theme': patch -'@backstage/types': patch -'@backstage/plugin-allure': patch -'@backstage/plugin-badges': patch -'@backstage/plugin-bazaar': patch -'@backstage/plugin-search': patch -'@backstage/plugin-sentry': patch -'@backstage/plugin-fossa': patch -'@backstage/plugin-ilert': patch -'@backstage/plugin-kafka': patch -'@backstage/plugin-nomad': patch -'@backstage/plugin-vault': patch -'@backstage/cli': patch -'@backstage/plugin-gocd': patch -'@backstage/plugin-home': patch -'@backstage/plugin-todo': patch -'@backstage/plugin-adr': patch -'@backstage/plugin-org': patch --- -Introduced `knip` to the `api-reports` command, which generates a `knip-report.md` file for your packages with dependency warnings, if any. +Introduced `knip` to the `knip-reports` command, which generates a `knip-report.md` file for your packages with dependency warnings, if any. diff --git a/.gitignore b/.gitignore index c0ef0d2001..e499faf29e 100644 --- a/.gitignore +++ b/.gitignore @@ -162,4 +162,7 @@ e2e-test-report/ *svg.dtmp # Scripts -plugins-report.csv \ No newline at end of file +plugins-report.csv + +# Temporary knip configs +knip.json diff --git a/package.json b/package.json index 60d4a285a5..7f38af475e 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build:all": "backstage-cli repo build --all", "build:api-reports": "yarn build:api-reports:only --tsc", "build:api-reports:only": "backstage-repo-tools api-reports --allow-warnings 'packages/core-components,plugins/+(catalog|catalog-import|git-release-manager|jenkins|kubernetes)' -o ae-wrong-input-file-type --validate-release-tags", + "build:knip-reports": "backstage-repo-tools knip-reports", "build:api-docs": "LANG=en_EN yarn build:api-reports --docs --exclude 'plugins/@(adr|adr-backend|adr-common|airbrake|airbrake-backend|allure|analytics-module-ga|analytics-module-ga4|analytics-module-newrelic-browser|apache-airflow|api-docs|api-docs-module-protoc-gen-doc|apollo-explorer|app-visualizer|azure-devops|azure-devops-backend|azure-devops-common|azure-sites|azure-sites-backend|azure-sites-common|badges|badges-backend|bazaar|bazaar-backend|bitbucket-cloud-common|bitrise|catalog-graph|catalog-graphql|catalog-import|catalog-unprocessed-entities|cicd-statistics|cicd-statistics-module-gitlab|circleci|cloudbuild|code-climate|code-coverage|code-coverage-backend|codescene|config-schema|cost-insights|cost-insights-common|dynatrace|entity-feedback|entity-feedback-backend|entity-feedback-common|entity-validation|example-todo-list|example-todo-list-backend|example-todo-list-common|firehydrant|fossa|gcalendar|gcp-projects|git-release-manager|github-actions|github-deployments|github-issues|github-pull-requests-board|gitops-profiles|gocd|graphiql|graphql-backend|graphql-voyager|ilert|jenkins|jenkins-backend|jenkins-common|kafka|kafka-backend|lighthouse|lighthouse-backend|lighthouse-common|linguist|linguist-backend|linguist-common|microsoft-calendar|newrelic|newrelic-dashboard|nomad|nomad-backend|octopus-deploy|opencost|pagerduty|periskop|periskop-backend|playlist|playlist-backend|playlist-common|proxy-backend|puppetdb|rollbar|rollbar-backend|sentry|shortcuts|splunk-on-call|stack-overflow|stack-overflow-backend|stackstorm|tech-radar|tech-radar-2|todo|todo-backend|xcmetrics)'", "build:plugins-report": "node ./scripts/build-plugins-report", "tsc": "tsc", diff --git a/packages/app-defaults/knip-report.md b/packages/app-defaults/knip-report.md index bac77f66bc..fb60112aa2 100644 --- a/packages/app-defaults/knip-report.md +++ b/packages/app-defaults/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/packages/app-next/knip-report.md b/packages/app-next/knip-report.md index 7ac62531b7..7787f9c8fc 100644 --- a/packages/app-next/knip-report.md +++ b/packages/app-next/knip-report.md @@ -1,6 +1,6 @@ # Knip report -## Unused dependencies (63) +## Unused dependencies (64) | Name | Location | |:-------------------------------------------------|:-------------| @@ -30,6 +30,7 @@ | @backstage/plugin-puppetdb | package.json | | @backstage/plugin-playlist | package.json | | @backstage/plugin-newrelic | package.json | +| @backstage/plugin-linguist | package.json | | @backstage/plugin-devtools | package.json | | @backstage/plugin-api-docs | package.json | | @backstage/plugin-airbrake | package.json | @@ -68,7 +69,7 @@ | @roadiehq/backstage-plugin-github-pull-requests | package.json | | @backstage/plugin-techdocs-module-addons-contrib | package.json | -## Unused devDependencies (8) +## Unused devDependencies (7) | Name | Location | |:----------------------------|:-------------| @@ -78,6 +79,5 @@ | @types/zen-observable | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/packages/app/knip-report.md b/packages/app/knip-report.md index 9a80ddd4ad..f22347da9f 100644 --- a/packages/app/knip-report.md +++ b/packages/app/knip-report.md @@ -15,12 +15,12 @@ | @vitejs/plugin-react | package.json | | vite-plugin-node-polyfills | package.json | | @backstage/plugin-airbrake | package.json | +| @backstage/frontend-app-api | package.json | | @backstage/plugin-azure-sites | package.json | | @backstage/plugin-search-common | package.json | -| @backstage/plugin-stack-overflow | package.json | | @backstage/plugin-linguist-common | package.json | -## Unused devDependencies (7) +## Unused devDependencies (5) | Name | Location | |:----------------------------|:-------------| @@ -28,8 +28,6 @@ | @types/jquery | package.json | | @testing-library/dom | package.json | | @types/zen-observable | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | ## Unlisted dependencies (1) diff --git a/packages/backend-tasks/knip-report.md b/packages/backend-tasks/knip-report.md index 243349f63c..b4595609b6 100644 --- a/packages/backend-tasks/knip-report.md +++ b/packages/backend-tasks/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused devDependencies (3) +## Unused devDependencies (2) -| Name | Location | -|:------------------------------|:-------------| -| @backstage/cli | package.json | -| wait-for-expect | package.json | -| @backstage/backend-test-utils | package.json | +| Name | Location | +|:----------------|:-------------| +| @backstage/cli | package.json | +| wait-for-expect | package.json | diff --git a/packages/backend/knip-report.md b/packages/backend/knip-report.md index 3d3e308dfb..dbd46f1746 100644 --- a/packages/backend/knip-report.md +++ b/packages/backend/knip-report.md @@ -14,7 +14,7 @@ | pg-connection-string | package.json | | azure-devops-node-api | package.json | | @backstage/plugin-tech-insights-node | package.json | -| @backstage/plugin-azure-sites-backend | package.json | +| @backstage/plugin-azure-sites-common | package.json | | @backstage/plugin-scaffolder-backend-module-rails | package.json | ## Unused devDependencies (3) diff --git a/packages/cli/knip-report.md b/packages/cli/knip-report.md index 0143d297fe..8caf86f5ec 100644 --- a/packages/cli/knip-report.md +++ b/packages/cli/knip-report.md @@ -33,10 +33,11 @@ | @spotify/eslint-config-react | package.json | | @typescript-eslint/eslint-plugin | package.json | -## Unused devDependencies (13) +## Unused devDependencies (18) | Name | Location | |:----------------------------------------|:-------------| +| msw | package.json | | del | package.json | | ts-node | package.json | | nodemon | package.json | @@ -45,9 +46,13 @@ | @backstage/theme | package.json | | @types/http-proxy | package.json | | @backstage/dev-utils | package.json | +| @backstage/test-utils | package.json | | @backstage/core-app-api | package.json | +| @backstage/backend-common | package.json | +| @backstage/core-plugin-api | package.json | | @backstage/core-components | package.json | | @types/terser-webpack-plugin | package.json | +| @backstage/backend-test-utils | package.json | | @backstage/backend-plugin-api | package.json | | @types/rollup-plugin-peer-deps-external | package.json | @@ -60,26 +65,11 @@ | @vitejs/plugin-react | package.json | | vite-plugin-node-polyfills | package.json | -## Unlisted dependencies (18) +## Unlisted dependencies (3) -| Name | Location | -|:----------------------------------|:-------------------------------------------------------------------------------------------------| -| rollup-plugin-polyfill-node | dist/cjs/build-5e63d42c.cjs.js | -| rollup-plugin-polyfill-node | dist/cjs/buildWorkspace-47e09dac.cjs.js | -| rollup-plugin-polyfill-node | dist/cjs/createDistWorkspace-09d75851.cjs.js | -| rollup-plugin-polyfill-node | dist/cjs/index-4cb89d61.cjs.js | -| react/package.json | dist/cjs/index-7e560cd7.cjs.js | -| react-dom/client | dist/cjs/packageDetection-6cb79707.cjs.js | -| prettier | dist/cjs/packageLintConfigs-eceb588c.cjs.js | -| prettier | src/commands/migrate/packageLintConfigs.ts | -| react-dom/client | src/lib/bundler/hasReactDomClient.ts | -| react/package.json | src/lib/bundler/server.ts | -| supertest | templates/default-backend-plugin/src/service/router.test.ts | -| winston | templates/default-backend-plugin/src/service/router.ts | -| express-promise-router | templates/default-backend-plugin/src/service/router.ts | -| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | -| @testing-library/react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | -| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | -| @material-ui/core | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | -| @backstage/plugin-scaffolder-node | templates/scaffolder-module/src/actions/example/example.ts | +| Name | Location | +|:-------------------|:-------------------------------------------| +| prettier | src/commands/migrate/packageLintConfigs.ts | +| react-dom/client | src/lib/bundler/hasReactDomClient.ts | +| react/package.json | src/lib/bundler/server.ts | diff --git a/packages/core-app-api/knip-report.md b/packages/core-app-api/knip-report.md index fc58f49ab9..905368dd3f 100644 --- a/packages/core-app-api/knip-report.md +++ b/packages/core-app-api/knip-report.md @@ -6,7 +6,7 @@ |:--------|:-------------| | history | package.json | -## Unused devDependencies (12) +## Unused devDependencies (11) | Name | Location | |:-----------------------------|:-------------| @@ -19,7 +19,6 @@ | @backstage/test-utils | package.json | | @testing-library/react | package.json | | react-router-dom-stable | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @testing-library/react-hooks | package.json | diff --git a/packages/core-compat-api/knip-report.md b/packages/core-compat-api/knip-report.md index 9be63304d1..25c65be193 100644 --- a/packages/core-compat-api/knip-report.md +++ b/packages/core-compat-api/knip-report.md @@ -6,13 +6,12 @@ |:------------------------|:-------------| | @backstage/core-app-api | package.json | -## Unused devDependencies (9) +## Unused devDependencies (8) | Name | Location | |:--------------------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @backstage/plugin-catalog | package.json | | @backstage/plugin-puppetdb | package.json | | @backstage/frontend-app-api | package.json | diff --git a/packages/core-components/knip-report.md b/packages/core-components/knip-report.md index 1a2ba665c4..f457b7bb78 100644 --- a/packages/core-components/knip-report.md +++ b/packages/core-components/knip-report.md @@ -9,7 +9,7 @@ | zen-observable | package.json | | @backstage/config | package.json | -## Unused devDependencies (11) +## Unused devDependencies (9) | Name | Location | |:----------------------------|:-------------| @@ -18,11 +18,9 @@ | @backstage/cli | package.json | | @testing-library/dom | package.json | | @types/zen-observable | package.json | -| @backstage/test-utils | package.json | | @types/google-protobuf | package.json | | @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| @backstage/app-defaults | package.json | | @testing-library/user-event | package.json | ## Unlisted dependencies (1) diff --git a/packages/core-plugin-api/knip-report.md b/packages/core-plugin-api/knip-report.md index 81ec43c56d..b222f9399d 100644 --- a/packages/core-plugin-api/knip-report.md +++ b/packages/core-plugin-api/knip-report.md @@ -6,7 +6,7 @@ |:--------|:-------------| | history | package.json | -## Unused devDependencies (7) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| @@ -15,6 +15,5 @@ | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/packages/dev-utils/knip-report.md b/packages/dev-utils/knip-report.md index 0215fabf06..c4383e6fce 100644 --- a/packages/dev-utils/knip-report.md +++ b/packages/dev-utils/knip-report.md @@ -6,7 +6,7 @@ |:-----------------|:-------------| | @backstage/theme | package.json | -## Unused devDependencies (7) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| @@ -15,6 +15,5 @@ | @testing-library/dom | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/packages/eslint-plugin/knip-report.md b/packages/eslint-plugin/knip-report.md index 5c4fbbed76..77fca799d7 100644 --- a/packages/eslint-plugin/knip-report.md +++ b/packages/eslint-plugin/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unlisted dependencies (3) +## Unlisted dependencies (2) -| Name | Location | -|:--------------------------|:-------------------------------| -| @typescript-eslint/parser | .eslintrc.js | -| estree | lib/visitImports.js | -| estree | rules/no-undeclared-imports.js | +| Name | Location | +|:-------|:-------------------------------| +| estree | lib/visitImports.js | +| estree | rules/no-undeclared-imports.js | diff --git a/packages/frontend-app-api/knip-report.md b/packages/frontend-app-api/knip-report.md index bac77f66bc..fb60112aa2 100644 --- a/packages/frontend-app-api/knip-report.md +++ b/packages/frontend-app-api/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/packages/frontend-plugin-api/knip-report.md b/packages/frontend-plugin-api/knip-report.md index c7680f4f9e..a6c1e939c7 100644 --- a/packages/frontend-plugin-api/knip-report.md +++ b/packages/frontend-plugin-api/knip-report.md @@ -8,7 +8,7 @@ | @material-ui/core | package.json | | @backstage/core-components | package.json | -## Unused devDependencies (7) +## Unused devDependencies (6) | Name | Location | |:-------------------------------|:-------------| @@ -16,7 +16,6 @@ | @backstage/cli | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @backstage/frontend-app-api | package.json | | @backstage/frontend-test-utils | package.json | diff --git a/packages/frontend-test-utils/knip-report.md b/packages/frontend-test-utils/knip-report.md index ae56051f88..24c942926b 100644 --- a/packages/frontend-test-utils/knip-report.md +++ b/packages/frontend-test-utils/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------|:-------------| +| @backstage/cli | package.json | diff --git a/packages/integration-react/knip-report.md b/packages/integration-react/knip-report.md index c7c82e3d6f..1ffbed64e8 100644 --- a/packages/integration-react/knip-report.md +++ b/packages/integration-react/knip-report.md @@ -1,20 +1,11 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (4) -| Name | Location | -|:------------------|:-------------| -| @material-ui/core | package.json | - -## Unused devDependencies (7) - -| Name | Location | -|:---------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/core-components | package.json | +| Name | Location | +|:----------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | diff --git a/packages/repo-tools/cli-report.md b/packages/repo-tools/cli-report.md index 7988c479b0..13e588e3e2 100644 --- a/packages/repo-tools/cli-report.md +++ b/packages/repo-tools/cli-report.md @@ -15,6 +15,7 @@ Commands: api-reports [options] [paths...] type-deps generate-catalog-info [options] + knip-reports [options] [paths...] package [command] repo [command] help [command] @@ -49,6 +50,16 @@ Options: -h, --help ``` +### `backstage-repo-tools knip-reports` + +``` +Usage: backstage-repo-tools knip-reports [options] [paths...] + +Options: + --ci + -h, --help +``` + ### `backstage-repo-tools package` ``` diff --git a/packages/repo-tools/src/commands/api-reports/api-extractor.ts b/packages/repo-tools/src/commands/api-reports/api-extractor.ts index f7a635ad14..2a7da2eac9 100644 --- a/packages/repo-tools/src/commands/api-reports/api-extractor.ts +++ b/packages/repo-tools/src/commands/api-reports/api-extractor.ts @@ -21,7 +21,6 @@ import { relative as relativePath, resolve as resolvePath, } from 'path'; -import { execFile } from 'child_process'; import fs from 'fs-extra'; import { CompilerState, @@ -30,8 +29,6 @@ import { ExtractorLogLevel, ExtractorMessage, } from '@microsoft/api-extractor'; -import os from 'os'; -import pLimit from 'p-limit'; import { Program } from 'typescript'; import { DocBlockTag, @@ -66,6 +63,7 @@ import { AstDeclaration } from '@microsoft/api-extractor/lib/analyzer/AstDeclara import { paths as cliPaths } from '../../lib/paths'; import minimatch from 'minimatch'; import { getPackageExportNames } from '../../lib/entryPoints'; +import { createBinRunner } from '../util'; const tmpDir = cliPaths.resolveTargetRoot( './node_modules/.cache/api-extractor', @@ -292,10 +290,10 @@ function logApiReportInstructions() { '*************************************************************************************', ); console.log( - '* You have uncommitted changes to the public API or reports of a package. *', + '* You have uncommitted changes to the public API of a package. *', ); console.log( - '* To solve this, run `yarn build:api-reports` and commit all md file changes. *', + '* To solve this, run `yarn build:api-reports` and commit all api-report.md changes. *', ); console.log( '*************************************************************************************', @@ -1229,31 +1227,6 @@ export async function categorizePackageDirs(packageDirs: string[]) { return { tsPackageDirs, cliPackageDirs }; } -function createBinRunner(cwd: string, path: string) { - return async (...command: string[]) => - new Promise((resolve, reject) => { - execFile( - 'node', - [path, ...command], - { - cwd, - shell: true, - timeout: 60000, - maxBuffer: 1024 * 1024, - }, - (err, stdout, stderr) => { - if (err) { - reject(new Error(`${err.message}\n${stderr}`)); - } else if (stderr) { - reject(new Error(`Command printed error output: ${stderr}`)); - } else { - resolve(stdout); - } - }, - ); - }); -} - function parseHelpPage(helpPageContent: string) { const [, usage] = helpPageContent.match(/^\s*Usage: (.*)$/im) ?? []; const lines = helpPageContent.split(/\r?\n/); @@ -1445,71 +1418,3 @@ export async function runCliExtraction({ } } } - -interface KnipExtractionOptions { - packageDirs: string[]; - isLocalBuild: boolean; -} - -export async function runKnipReports({ - packageDirs, - isLocalBuild, -}: KnipExtractionOptions) { - const knipDir = cliPaths.resolveTargetRoot('./node_modules/knip/bin/'); - const limiter = pLimit(os.cpus().length); - - await Promise.all( - packageDirs.map(packageDir => - limiter(async () => { - console.log(`## Processing ${packageDir}`); - const fullDir = cliPaths.resolveTargetRoot(packageDir); - const reportPath = resolvePath(fullDir, 'knip-report.md'); - const run = createBinRunner(fullDir, ''); - - const report = await run( - `${knipDir}/knip.js`, - `--directory ${fullDir}`, // Run in the package directory - '--no-exit-code', // Removing this will end the process in case there are findings by knip - '--no-progress', // Remove unnecessary debugging from output - // TODO: Add more checks when dependencies start to look ok, see https://knip.dev/reference/cli#--include - '--include dependencies,unlisted', - '--reporter markdown', - ); - - const existingReport = await fs - .readFile(reportPath, 'utf8') - .catch(error => { - if (error.code === 'ENOENT') { - return undefined; - } - throw error; - }); - - if (existingReport !== report) { - if (isLocalBuild) { - console.warn(`Knip report changed for ${packageDir}`); - await fs.writeFile(reportPath, report); - } else { - logApiReportInstructions(); - - if (existingReport) { - console.log(''); - console.log( - `The conflicting file is ${relativePath( - cliPaths.targetRoot, - reportPath, - )}, expecting the following content:`, - ); - console.log(''); - - console.log(report); - - logApiReportInstructions(); - } - throw new Error(`Knip report changed for ${packageDir}, `); - } - } - }), - ), - ); -} diff --git a/packages/repo-tools/src/commands/api-reports/api-reports.test.ts b/packages/repo-tools/src/commands/api-reports/api-reports.test.ts index 955720c52e..d26f6dba85 100644 --- a/packages/repo-tools/src/commands/api-reports/api-reports.test.ts +++ b/packages/repo-tools/src/commands/api-reports/api-reports.test.ts @@ -43,7 +43,6 @@ jest.mock('./api-extractor', () => ({ runApiExtraction: jest.fn(), runCliExtraction: jest.fn(), buildDocs: jest.fn(), - runKnipReports: jest.fn(), })); const projectPaths = pathsLib.paths; diff --git a/packages/repo-tools/src/commands/api-reports/api-reports.ts b/packages/repo-tools/src/commands/api-reports/api-reports.ts index 31900ae9a8..637cd86671 100644 --- a/packages/repo-tools/src/commands/api-reports/api-reports.ts +++ b/packages/repo-tools/src/commands/api-reports/api-reports.ts @@ -21,7 +21,6 @@ import { createTemporaryTsConfig, runApiExtraction, runCliExtraction, - runKnipReports, } from './api-extractor'; import { paths as cliPaths, resolvePackagePaths } from '../../lib/paths'; import { generateTypeDeclarations } from './generateTypeDeclarations'; @@ -104,14 +103,6 @@ export const buildApiReports = async (paths: string[] = [], opts: Options) => { }); } - if (selectedPackageDirs.length > 0) { - console.log('# Generating package knip reports'); - await runKnipReports({ - packageDirs: selectedPackageDirs, - isLocalBuild: !isCiBuild, - }); - } - if (isDocsBuild) { console.log('# Generating package documentation'); await buildDocs({ diff --git a/packages/repo-tools/src/commands/index.ts b/packages/repo-tools/src/commands/index.ts index 1fa37402ce..e0463da4f9 100644 --- a/packages/repo-tools/src/commands/index.ts +++ b/packages/repo-tools/src/commands/index.ts @@ -168,6 +168,17 @@ export function registerCommands(program: Command) { ), ), ); + + program + .command('knip-reports [paths...]') + .option('--ci', 'CI run checks that there is no changes on knip reports') + .description('Generate a knip report for selected packages') + .action( + lazy(() => + import('./knip-reports/knip-reports').then(m => m.buildKnipReports), + ), + ); + registerPackageCommand(program); registerRepoCommand(program); } diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts new file mode 100644 index 0000000000..8273ab2533 --- /dev/null +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -0,0 +1,175 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { paths as cliPaths } from '../../lib/paths'; +import pLimit from 'p-limit'; +import os from 'os'; +import { relative as relativePath, resolve as resolvePath } from 'path'; +import fs from 'fs-extra'; +import { createBinRunner } from '../util'; + +// Ignore this due to Knip error: Error: ENAMETOOLONG: name too long, scandir +const ignoredPackages = ['packages/techdocs-cli-embedded-app']; + +interface KnipExtractionOptions { + packageDirs: string[]; + isLocalBuild: boolean; +} + +interface KnipConfigOptions { + packageDir: string; +} + +interface KnipPackageOptions { + packageDir: string; + knipDir: string; + isLocalBuild: boolean; +} + +function logKnipReportInstructions() { + console.log(''); + console.log( + '*************************************************************************************', + ); + console.log( + '* You have uncommitted changes to the knip reports of a package. *', + ); + console.log( + '* To solve this, run `yarn build:knip-reports` and commit all md file changes. *', + ); + console.log( + '*************************************************************************************', + ); + console.log(''); +} + +async function generateKnipConfig({ packageDir }: KnipConfigOptions) { + const knipConfig = { + entry: [ + 'dev/index.{ts,tsx}', + 'src/index.{ts,tsx}', + 'src/routes.ts', + 'src/run.ts', + ], + jest: { entry: 'src/setupTests.ts' }, + storybook: { entry: 'src/components/**/*.stories.tsx' }, + ignore: [ + '.eslintrc.js', + 'config.d.ts', + 'knexfile.js', + 'node_modules/**', + 'dist/**', + '{fixtures,migrations,templates}/**', + ], + }; + await fs.writeFile( + `${packageDir}/knip.json`, + JSON.stringify(knipConfig, null, 2), + ); +} + +function cleanKnipConfig({ packageDir }: KnipConfigOptions) { + if (fs.existsSync(`${packageDir}/knip.json`)) { + fs.rmSync(`${packageDir}/knip.json`); + } +} + +async function handlePackage({ + packageDir, + knipDir, + isLocalBuild, +}: KnipPackageOptions) { + console.log(`## Processing ${packageDir}`); + if (ignoredPackages.includes(packageDir)) { + console.log(`Skipping ${packageDir}`); + return; + } + const fullDir = cliPaths.resolveTargetRoot(packageDir); + const reportPath = resolvePath(fullDir, 'knip-report.md'); + const run = createBinRunner(fullDir, ''); + + await generateKnipConfig({ packageDir: fullDir }); + + const report = await run( + `${knipDir}/knip.js`, + `--directory ${fullDir}`, // Run in the package directory + '--config knip.json', + '--no-exit-code', // Removing this will end the process in case there are findings by knip + '--no-progress', // Remove unnecessary debugging from output + // TODO: Add more checks when dependencies start to look ok, see https://knip.dev/reference/cli#--include + '--include dependencies,unlisted', + '--reporter markdown', + ); + + cleanKnipConfig({ packageDir: fullDir }); + + const existingReport = await fs.readFile(reportPath, 'utf8').catch(error => { + if (error.code === 'ENOENT') { + return undefined; + } + throw error; + }); + + if (existingReport !== report) { + if (isLocalBuild) { + console.warn(`Knip report changed for ${packageDir}`); + await fs.writeFile(reportPath, report); + } else { + logKnipReportInstructions(); + + if (existingReport) { + console.log(''); + console.log( + `The conflicting file is ${relativePath( + cliPaths.targetRoot, + reportPath, + )}, expecting the following content:`, + ); + console.log(''); + + console.log(report); + + logKnipReportInstructions(); + } + throw new Error(`Knip report changed for ${packageDir}, `); + } + } +} + +export async function runKnipReports({ + packageDirs, + isLocalBuild, +}: KnipExtractionOptions) { + const knipDir = cliPaths.resolveTargetRoot('./node_modules/knip/bin/'); + const limiter = pLimit(os.cpus().length); + + try { + await Promise.all( + packageDirs.map(packageDir => + limiter(async () => + handlePackage({ packageDir, knipDir, isLocalBuild }), + ), + ), + ); + } catch (e) { + console.log( + `Error occurred during knip reporting: ${e}, cleaning knip configs`, + ); + packageDirs.map(packageDir => { + const fullDir = cliPaths.resolveTargetRoot(packageDir); + cleanKnipConfig({ packageDir: fullDir }); + }); + } +} diff --git a/packages/repo-tools/src/commands/knip-reports/knip-reports.ts b/packages/repo-tools/src/commands/knip-reports/knip-reports.ts new file mode 100644 index 0000000000..48ffa6cbdb --- /dev/null +++ b/packages/repo-tools/src/commands/knip-reports/knip-reports.ts @@ -0,0 +1,54 @@ +/* + * Copyright 2022 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { OptionValues } from 'commander'; +import { runKnipReports } from './knip-extractor'; +import { resolvePackagePaths } from '../../lib/paths'; + +type Options = { + ci?: boolean; +} & OptionValues; + +export const buildKnipReports = async (paths: string[] = [], opts: Options) => { + const isCiBuild = opts.ci; + + const isAllPackages = !paths?.length; + const selectedPackageDirs = await resolvePackagePaths({ + paths, + include: opts.include, + exclude: opts.exclude, + }); + + if (isAllPackages && !isCiBuild) { + console.log(''); + console.log( + 'TIP: You can generate knip-reports for select packages by passing package paths:', + ); + console.log(''); + console.log( + ' yarn build:knip-reports packages/config packages/core-plugin-api plugins/*', + ); + console.log(''); + } + + if (selectedPackageDirs.length > 0) { + console.log('# Generating package knip reports'); + await runKnipReports({ + packageDirs: selectedPackageDirs, + isLocalBuild: !isCiBuild, + }); + } +}; diff --git a/packages/repo-tools/src/commands/util.ts b/packages/repo-tools/src/commands/util.ts new file mode 100644 index 0000000000..933945bc5c --- /dev/null +++ b/packages/repo-tools/src/commands/util.ts @@ -0,0 +1,41 @@ +/* + * Copyright 2024 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { execFile } from 'child_process'; + +export function createBinRunner(cwd: string, path: string) { + return async (...command: string[]) => + new Promise((resolve, reject) => { + execFile( + 'node', + [path, ...command], + { + cwd, + shell: true, + timeout: 60000, + maxBuffer: 1024 * 1024, + }, + (err, stdout, stderr) => { + if (err) { + reject(new Error(`${err.message}\n${stderr}`)); + } else if (stderr) { + reject(new Error(`Command printed error output: ${stderr}`)); + } else { + resolve(stdout); + } + }, + ); + }); +} diff --git a/packages/test-utils/knip-report.md b/packages/test-utils/knip-report.md index 01c8cd52b2..4c8222eecd 100644 --- a/packages/test-utils/knip-report.md +++ b/packages/test-utils/knip-report.md @@ -6,11 +6,10 @@ |:------------------|:-------------| | @material-ui/core | package.json | -## Unused devDependencies (3) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | diff --git a/packages/theme/knip-report.md b/packages/theme/knip-report.md index 4e238f9db6..71141a3bba 100644 --- a/packages/theme/knip-report.md +++ b/packages/theme/knip-report.md @@ -7,12 +7,11 @@ | @emotion/react | package.json | | @emotion/styled | package.json | -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @mui/styles | package.json | -| @backstage/cli | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @mui/styles | package.json | +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/packages/version-bridge/knip-report.md b/packages/version-bridge/knip-report.md index 14792f6907..9f54e7f06d 100644 --- a/packages/version-bridge/knip-report.md +++ b/packages/version-bridge/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused devDependencies (3) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/plugins/adr/knip-report.md b/plugins/adr/knip-report.md index dd9e1bedfe..881216583e 100644 --- a/plugins/adr/knip-report.md +++ b/plugins/adr/knip-report.md @@ -7,12 +7,11 @@ | remark-gfm | package.json | | react-markdown | package.json | -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/airbrake-backend/knip-report.md b/plugins/airbrake-backend/knip-report.md index 8c164ce0a4..e31e20b852 100644 --- a/plugins/airbrake-backend/knip-report.md +++ b/plugins/airbrake-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (3) | Name | Location | diff --git a/plugins/airbrake/knip-report.md b/plugins/airbrake/knip-report.md index 72d2b4fc16..9364473c4f 100644 --- a/plugins/airbrake/knip-report.md +++ b/plugins/airbrake/knip-report.md @@ -1,23 +1,12 @@ # Knip report -## Unused dependencies (3) +## Unused devDependencies (5) -| Name | Location | -|:----------------------|:-------------| -| @material-ui/icons | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | - -## Unused devDependencies (8) - -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/app-defaults | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | +| @backstage/app-defaults | package.json | diff --git a/plugins/allure/knip-report.md b/plugins/allure/knip-report.md index 49caf552e3..a7fde3968b 100644 --- a/plugins/allure/knip-report.md +++ b/plugins/allure/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/analytics-module-ga/knip-report.md b/plugins/analytics-module-ga/knip-report.md index 5a62588b7e..9679afeb54 100644 --- a/plugins/analytics-module-ga/knip-report.md +++ b/plugins/analytics-module-ga/knip-report.md @@ -1,19 +1,10 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (3) -| Name | Location | -|:---------------------------|:-------------| -| @backstage/core-components | package.json | - -## Unused devDependencies (6) - -| Name | Location | -|:--------------------------|:-------------| -| @types/react | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/analytics-module-ga4/knip-report.md b/plugins/analytics-module-ga4/knip-report.md index abf81e4cb3..544b473dd0 100644 --- a/plugins/analytics-module-ga4/knip-report.md +++ b/plugins/analytics-module-ga4/knip-report.md @@ -1,20 +1,11 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (4) -| Name | Location | -|:---------------------------|:-------------| -| @backstage/core-components | package.json | - -## Unused devDependencies (7) - -| Name | Location | -|:--------------------------|:-------------| -| @types/jest | package.json | -| @types/react | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @types/jest | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/analytics-module-newrelic-browser/knip-report.md b/plugins/analytics-module-newrelic-browser/knip-report.md index 321f11e9c6..9f54e7f06d 100644 --- a/plugins/analytics-module-newrelic-browser/knip-report.md +++ b/plugins/analytics-module-newrelic-browser/knip-report.md @@ -1,17 +1,9 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (2) -| Name | Location | -|:---------------------------|:-------------| -| @backstage/core-components | package.json | - -## Unused devDependencies (4) - -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/plugins/apache-airflow/knip-report.md b/plugins/apache-airflow/knip-report.md index 08495d977c..44a5bee885 100644 --- a/plugins/apache-airflow/knip-report.md +++ b/plugins/apache-airflow/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/api-docs-module-protoc-gen-doc/knip-report.md b/plugins/api-docs-module-protoc-gen-doc/knip-report.md index ae56051f88..24c942926b 100644 --- a/plugins/api-docs-module-protoc-gen-doc/knip-report.md +++ b/plugins/api-docs-module-protoc-gen-doc/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------|:-------------| +| @backstage/cli | package.json | diff --git a/plugins/api-docs/knip-report.md b/plugins/api-docs/knip-report.md index d6646c1efe..7ecee7de26 100644 --- a/plugins/api-docs/knip-report.md +++ b/plugins/api-docs/knip-report.md @@ -8,16 +8,14 @@ | graphql-config | package.json | | isomorphic-form-data | package.json | -## Unused devDependencies (8) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/apollo-explorer/knip-report.md b/plugins/apollo-explorer/knip-report.md index 127784b04c..25d92625f5 100644 --- a/plugins/apollo-explorer/knip-report.md +++ b/plugins/apollo-explorer/knip-report.md @@ -6,13 +6,11 @@ |:------------------------|:-------------| | use-deep-compare-effect | package.json | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/auth-backend-module-atlassian-provider/knip-report.md b/plugins/auth-backend-module-atlassian-provider/knip-report.md index 2c608a6827..fe0782ee45 100644 --- a/plugins/auth-backend-module-atlassian-provider/knip-report.md +++ b/plugins/auth-backend-module-atlassian-provider/knip-report.md @@ -7,13 +7,11 @@ | express | package.json | | passport | package.json | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:-------------------------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-aws-alb-provider/knip-report.md b/plugins/auth-backend-module-aws-alb-provider/knip-report.md new file mode 100644 index 0000000000..3071bbff01 --- /dev/null +++ b/plugins/auth-backend-module-aws-alb-provider/knip-report.md @@ -0,0 +1,18 @@ +# Knip report + +## Unused dependencies (2) + +| Name | Location | +|:-------------------------------|:-------------| +| @backstage/backend-common | package.json | +| @backstage/plugin-auth-backend | package.json | + +## Unused devDependencies (4) + +| Name | Location | +|:------------------------------|:-------------| +| express | package.json | +| @backstage/cli | package.json | +| @backstage/config | package.json | +| @backstage/backend-test-utils | package.json | + diff --git a/plugins/auth-backend-module-github-provider/knip-report.md b/plugins/auth-backend-module-github-provider/knip-report.md index ef27674899..8d7bd5cd41 100644 --- a/plugins/auth-backend-module-github-provider/knip-report.md +++ b/plugins/auth-backend-module-github-provider/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:-------------------------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-gitlab-provider/knip-report.md b/plugins/auth-backend-module-gitlab-provider/knip-report.md index 2c608a6827..fe0782ee45 100644 --- a/plugins/auth-backend-module-gitlab-provider/knip-report.md +++ b/plugins/auth-backend-module-gitlab-provider/knip-report.md @@ -7,13 +7,11 @@ | express | package.json | | passport | package.json | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:-------------------------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-microsoft-provider/knip-report.md b/plugins/auth-backend-module-microsoft-provider/knip-report.md index 67ef0e695c..d51b79899b 100644 --- a/plugins/auth-backend-module-microsoft-provider/knip-report.md +++ b/plugins/auth-backend-module-microsoft-provider/knip-report.md @@ -7,15 +7,13 @@ | express | package.json | | passport | package.json | -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:-------------------------------|:-------------| -| msw | package.json | -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/config | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| msw | package.json | +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/config | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-oauth2-provider/knip-report.md b/plugins/auth-backend-module-oauth2-provider/knip-report.md index b4f8775d9a..3db18e15f0 100644 --- a/plugins/auth-backend-module-oauth2-provider/knip-report.md +++ b/plugins/auth-backend-module-oauth2-provider/knip-report.md @@ -6,13 +6,11 @@ |:---------|:-------------| | passport | package.json | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:-------------------------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-oidc-provider/knip-report.md b/plugins/auth-backend-module-oidc-provider/knip-report.md new file mode 100644 index 0000000000..8cb9f67afb --- /dev/null +++ b/plugins/auth-backend-module-oidc-provider/knip-report.md @@ -0,0 +1,24 @@ +# Knip report + +## Unused dependencies (3) + +| Name | Location | +|:--------------------------|:-------------| +| express | package.json | +| passport | package.json | +| @backstage/backend-common | package.json | + +## Unused devDependencies (9) + +| Name | Location | +|:------------------------------|:-------------| +| msw | package.json | +| jose | package.json | +| supertest | package.json | +| cookie-parser | package.json | +| @backstage/cli | package.json | +| express-session | package.json | +| @backstage/config | package.json | +| express-promise-router | package.json | +| @backstage/backend-test-utils | package.json | + diff --git a/plugins/auth-backend-module-okta-provider/knip-report.md b/plugins/auth-backend-module-okta-provider/knip-report.md index 2c608a6827..fe0782ee45 100644 --- a/plugins/auth-backend-module-okta-provider/knip-report.md +++ b/plugins/auth-backend-module-okta-provider/knip-report.md @@ -7,13 +7,11 @@ | express | package.json | | passport | package.json | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:-------------------------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-pinniped-provider/knip-report.md b/plugins/auth-backend-module-pinniped-provider/knip-report.md index dc55a51fd3..c3dbae1569 100644 --- a/plugins/auth-backend-module-pinniped-provider/knip-report.md +++ b/plugins/auth-backend-module-pinniped-provider/knip-report.md @@ -1,18 +1,16 @@ # Knip report -## Unused devDependencies (11) +## Unused devDependencies (9) -| Name | Location | -|:-------------------------------|:-------------| -| msw | package.json | -| jose | package.json | -| express | package.json | -| passport | package.json | -| supertest | package.json | -| cookie-parser | package.json | -| @backstage/cli | package.json | -| express-session | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| msw | package.json | +| jose | package.json | +| express | package.json | +| passport | package.json | +| supertest | package.json | +| cookie-parser | package.json | +| @backstage/cli | package.json | +| express-session | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md b/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md index d9be83c6e3..c5d1ec2ac8 100644 --- a/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md +++ b/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:-------------------------------|:-------------| -| msw | package.json | -| supertest | package.json | -| @backstage/cli | package.json | -| @backstage/errors | package.json | -| @backstage/config | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | -| @backstage/plugin-auth-backend | package.json | +| Name | Location | +|:------------------------------|:-------------| +| msw | package.json | +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/errors | package.json | +| @backstage/config | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/auth-backend/knip-report.md b/plugins/auth-backend/knip-report.md index 40fdccc2c3..b5112154f3 100644 --- a/plugins/auth-backend/knip-report.md +++ b/plugins/auth-backend/knip-report.md @@ -1,6 +1,6 @@ # Knip report -## Unused dependencies (10) +## Unused dependencies (12) | Name | Location | |:------------------------|:-------------| @@ -9,13 +9,15 @@ | morgan | package.json | | winston | package.json | | fs-extra | package.json | +| node-cache | package.json | | compression | package.json | -| passport-gitlab2 | package.json | +| openid-client | package.json | | passport-github2 | package.json | +| passport-microsoft | package.json | | google-auth-library | package.json | | passport-google-oauth20 | package.json | -## Unused devDependencies (10) +## Unused devDependencies (9) | Name | Location | |:-------------------------------|:-------------| @@ -26,7 +28,6 @@ | @types/body-parser | package.json | | @types/passport-github2 | package.json | | @types/passport-strategy | package.json | -| @backstage/backend-defaults | package.json | -| @backstage/backend-test-utils | package.json | +| @types/passport-microsoft | package.json | | @types/passport-google-oauth20 | package.json | diff --git a/plugins/azure-devops-backend/knip-report.md b/plugins/azure-devops-backend/knip-report.md index 8c164ce0a4..e31e20b852 100644 --- a/plugins/azure-devops-backend/knip-report.md +++ b/plugins/azure-devops-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (3) | Name | Location | diff --git a/plugins/azure-devops/knip-report.md b/plugins/azure-devops/knip-report.md index 5484ac86b2..ecf6480396 100644 --- a/plugins/azure-devops/knip-report.md +++ b/plugins/azure-devops/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/azure-sites-backend/knip-report.md b/plugins/azure-sites-backend/knip-report.md index 739ca03adb..b1d05b28ee 100644 --- a/plugins/azure-sites-backend/knip-report.md +++ b/plugins/azure-sites-backend/knip-report.md @@ -2,10 +2,10 @@ ## Unused dependencies (2) -| Name | Location | -|:-----------|:-------------| -| yn | package.json | -| node-fetch | package.json | +| Name | Location | +|:-------------------------|:-------------| +| node-fetch | package.json | +| @backstage/catalog-model | package.json | ## Unused devDependencies (2) diff --git a/plugins/azure-sites-common/knip-report.md b/plugins/azure-sites-common/knip-report.md index 24c942926b..c61d844657 100644 --- a/plugins/azure-sites-common/knip-report.md +++ b/plugins/azure-sites-common/knip-report.md @@ -1,5 +1,11 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | +|:-------------------------|:-------------| +| @backstage/catalog-model | package.json | + ## Unused devDependencies (1) | Name | Location | diff --git a/plugins/azure-sites/knip-report.md b/plugins/azure-sites/knip-report.md index 49caf552e3..c60bbdc1a8 100644 --- a/plugins/azure-sites/knip-report.md +++ b/plugins/azure-sites/knip-report.md @@ -1,14 +1,20 @@ # Knip report -## Unused devDependencies (7) +## Unused dependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------------------|:-------------| +| @backstage/theme | package.json | +| @backstage/plugin-permission-react | package.json | +| @backstage/plugin-permission-common | package.json | + +## Unused devDependencies (5) + +| Name | Location | +|:-----------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/badges-backend/knip-report.md b/plugins/badges-backend/knip-report.md index 93eacaa2b1..db5d6f9746 100644 --- a/plugins/badges-backend/knip-report.md +++ b/plugins/badges-backend/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (2) | Name | Location | |:----------|:-------------| -| yn | package.json | | cors | package.json | | supertest | package.json | diff --git a/plugins/badges/knip-report.md b/plugins/badges/knip-report.md index 3fa6192efd..ce8576bebf 100644 --- a/plugins/badges/knip-report.md +++ b/plugins/badges/knip-report.md @@ -1,11 +1,9 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | diff --git a/plugins/bazaar-backend/knip-report.md b/plugins/bazaar-backend/knip-report.md index ea141f0cbe..2a595acf79 100644 --- a/plugins/bazaar-backend/knip-report.md +++ b/plugins/bazaar-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (2) | Name | Location | diff --git a/plugins/bazaar/knip-report.md b/plugins/bazaar/knip-report.md index b43003d1bb..a203b667b3 100644 --- a/plugins/bazaar/knip-report.md +++ b/plugins/bazaar/knip-report.md @@ -1,17 +1,14 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) | Name | Location | |:--------------------------|:-------------| -| @testing-library/jest-dom | package.json | | @backstage/catalog-client | package.json | -## Unused devDependencies (3) +## Unused devDependencies (1) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------|:-------------| +| @backstage/cli | package.json | diff --git a/plugins/bitrise/knip-report.md b/plugins/bitrise/knip-report.md index 3bf7c90c2b..5ab0e57e57 100644 --- a/plugins/bitrise/knip-report.md +++ b/plugins/bitrise/knip-report.md @@ -6,7 +6,7 @@ |:---------|:-------------| | recharts | package.json | -## Unused devDependencies (10) +## Unused devDependencies (8) | Name | Location | |:----------------------------|:-------------| @@ -14,10 +14,8 @@ | @backstage/cli | package.json | | @types/recharts | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/catalog-backend-module-incremental-ingestion/knip-report.md b/plugins/catalog-backend-module-incremental-ingestion/knip-report.md index fbc203820a..2a595acf79 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/knip-report.md +++ b/plugins/catalog-backend-module-incremental-ingestion/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused devDependencies (3) +## Unused devDependencies (2) | Name | Location | |:------------------------------|:-------------| | @backstage/cli | package.json | -| @backstage/backend-defaults | package.json | | @backstage/backend-test-utils | package.json | diff --git a/plugins/catalog-backend/knip-report.md b/plugins/catalog-backend/knip-report.md index 5639c9c550..bae768e781 100644 --- a/plugins/catalog-backend/knip-report.md +++ b/plugins/catalog-backend/knip-report.md @@ -6,15 +6,14 @@ |:-----------|:-------------| | node-fetch | package.json | -## Unused devDependencies (7) +## Unused devDependencies (6) -| Name | Location | -|:------------------------------|:-------------| -| msw | package.json | -| supertest | package.json | -| better-sqlite3 | package.json | -| @backstage/cli | package.json | -| wait-for-expect | package.json | -| @types/supertest | package.json | -| @backstage/backend-test-utils | package.json | +| Name | Location | +|:-----------------|:-------------| +| msw | package.json | +| supertest | package.json | +| better-sqlite3 | package.json | +| @backstage/cli | package.json | +| wait-for-expect | package.json | +| @types/supertest | package.json | diff --git a/plugins/catalog-graph/knip-report.md b/plugins/catalog-graph/knip-report.md index ffeefea695..95a44323ae 100644 --- a/plugins/catalog-graph/knip-report.md +++ b/plugins/catalog-graph/knip-report.md @@ -1,23 +1,19 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) -| Name | Location | -|:--------------------------|:-------------| -| lodash | package.json | -| @backstage/catalog-client | package.json | +| Name | Location | +|:--------|:-------------| +| p-limit | package.json | -## Unused devDependencies (9) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/plugin-catalog | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/catalog-import/knip-report.md b/plugins/catalog-import/knip-report.md index 106e5b2b82..dbaf2b64d3 100644 --- a/plugins/catalog-import/knip-report.md +++ b/plugins/catalog-import/knip-report.md @@ -1,16 +1,14 @@ # Knip report -## Unused devDependencies (9) +## Unused devDependencies (7) | Name | Location | |:----------------------------|:-------------| | msw | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/catalog-react/knip-report.md b/plugins/catalog-react/knip-report.md index 0bd163e533..03d1ee0396 100644 --- a/plugins/catalog-react/knip-report.md +++ b/plugins/catalog-react/knip-report.md @@ -6,17 +6,15 @@ |:---------------------------------|:-------------| | @backstage/plugin-catalog-common | package.json | -## Unused devDependencies (10) +## Unused devDependencies (8) | Name | Location | |:------------------------------------|:-------------| | @backstage/cli | package.json | | react-test-renderer | package.json | | @testing-library/dom | package.json | -| @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @backstage/plugin-catalog-common | package.json | | @backstage/plugin-scaffolder-common | package.json | diff --git a/plugins/catalog-unprocessed-entities/knip-report.md b/plugins/catalog-unprocessed-entities/knip-report.md index f57e40a0ba..9f54e7f06d 100644 --- a/plugins/catalog-unprocessed-entities/knip-report.md +++ b/plugins/catalog-unprocessed-entities/knip-report.md @@ -1,11 +1,9 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/plugins/catalog/knip-report.md b/plugins/catalog/knip-report.md index 875b92587f..cdf24bac48 100644 --- a/plugins/catalog/knip-report.md +++ b/plugins/catalog/knip-report.md @@ -6,17 +6,15 @@ |:--------|:-------------| | history | package.json | -## Unused devDependencies (9) +## Unused devDependencies (7) | Name | Location | |:------------------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @backstage/plugin-permission-common | package.json | diff --git a/plugins/circleci/knip-report.md b/plugins/circleci/knip-report.md index 60ceb9a96f..24c942926b 100644 --- a/plugins/circleci/knip-report.md +++ b/plugins/circleci/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) -| Name | Location | -|:---------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | +| Name | Location | +|:---------------|:-------------| +| @backstage/cli | package.json | diff --git a/plugins/cloudbuild/knip-report.md b/plugins/cloudbuild/knip-report.md index 5484ac86b2..ecf6480396 100644 --- a/plugins/cloudbuild/knip-report.md +++ b/plugins/cloudbuild/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/code-climate/knip-report.md b/plugins/code-climate/knip-report.md index ae8b1336a1..ecf6480396 100644 --- a/plugins/code-climate/knip-report.md +++ b/plugins/code-climate/knip-report.md @@ -1,19 +1,11 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (4) -| Name | Location | -|:-------------------------|:-------------| -| @backstage/catalog-model | package.json | - -## Unused devDependencies (6) - -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/code-coverage-backend/knip-report.md b/plugins/code-coverage-backend/knip-report.md index bce9ec210a..86e3079791 100644 --- a/plugins/code-coverage-backend/knip-report.md +++ b/plugins/code-coverage-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (4) | Name | Location | diff --git a/plugins/code-coverage/knip-report.md b/plugins/code-coverage/knip-report.md index 308b2f4748..2f33ca2948 100644 --- a/plugins/code-coverage/knip-report.md +++ b/plugins/code-coverage/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @types/highlightjs | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @types/highlightjs | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/codescene/knip-report.md b/plugins/codescene/knip-report.md index cd4b52a70a..efbc44e5d5 100644 --- a/plugins/codescene/knip-report.md +++ b/plugins/codescene/knip-report.md @@ -6,16 +6,14 @@ |:------------------|:-------------| | @backstage/config | package.json | -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/config-schema/knip-report.md b/plugins/config-schema/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/config-schema/knip-report.md +++ b/plugins/config-schema/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/cost-insights/knip-report.md b/plugins/cost-insights/knip-report.md index 6e3734e217..942ccee1be 100644 --- a/plugins/cost-insights/knip-report.md +++ b/plugins/cost-insights/knip-report.md @@ -7,17 +7,15 @@ | history | package.json | | @material-ui/styles | package.json | -## Unused devDependencies (9) +## Unused devDependencies (7) | Name | Location | |:----------------------------|:-------------| | canvas | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/devtools-backend/knip-report.md b/plugins/devtools-backend/knip-report.md index dc9f753a6b..0c78f2475f 100644 --- a/plugins/devtools-backend/knip-report.md +++ b/plugins/devtools-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (4) | Name | Location | diff --git a/plugins/devtools/knip-report.md b/plugins/devtools/knip-report.md index f57e40a0ba..9f54e7f06d 100644 --- a/plugins/devtools/knip-report.md +++ b/plugins/devtools/knip-report.md @@ -1,11 +1,9 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/plugins/dynatrace/knip-report.md b/plugins/dynatrace/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/dynatrace/knip-report.md +++ b/plugins/dynatrace/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/entity-feedback-backend/knip-report.md b/plugins/entity-feedback-backend/knip-report.md index 02e48d9bc4..3e8751a225 100644 --- a/plugins/entity-feedback-backend/knip-report.md +++ b/plugins/entity-feedback-backend/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (1) -| Name | Location | -|:------------------|:-------------| -| yn | package.json | -| node-fetch | package.json | -| @backstage/config | package.json | +| Name | Location | +|:-----------|:-------------| +| node-fetch | package.json | ## Unused devDependencies (4) diff --git a/plugins/entity-feedback/knip-report.md b/plugins/entity-feedback/knip-report.md index f3538df4bb..c767d8f623 100644 --- a/plugins/entity-feedback/knip-report.md +++ b/plugins/entity-feedback/knip-report.md @@ -1,6 +1,6 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| @@ -9,6 +9,5 @@ | @testing-library/dom | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/entity-validation/knip-report.md b/plugins/entity-validation/knip-report.md index 4346521955..ecf6480396 100644 --- a/plugins/entity-validation/knip-report.md +++ b/plugins/entity-validation/knip-report.md @@ -1,12 +1,11 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/example-todo-list-backend/knip-report.md b/plugins/example-todo-list-backend/knip-report.md index 8c164ce0a4..e31e20b852 100644 --- a/plugins/example-todo-list-backend/knip-report.md +++ b/plugins/example-todo-list-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (3) | Name | Location | diff --git a/plugins/example-todo-list/knip-report.md b/plugins/example-todo-list/knip-report.md index a3d34e034c..9679afeb54 100644 --- a/plugins/example-todo-list/knip-report.md +++ b/plugins/example-todo-list/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/explore-backend/knip-report.md b/plugins/explore-backend/knip-report.md index d957444a99..899e3d7956 100644 --- a/plugins/explore-backend/knip-report.md +++ b/plugins/explore-backend/knip-report.md @@ -1,18 +1,18 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (2) | Name | Location | |:-----------------|:-------------| -| yn | package.json | | node-fetch | package.json | | @backstage/types | package.json | -## Unused devDependencies (3) +## Unused devDependencies (4) -| Name | Location | -|:-----------------|:-------------| -| supertest | package.json | -| @backstage/cli | package.json | -| @types/supertest | package.json | +| Name | Location | +|:------------------------------|:-------------| +| supertest | package.json | +| @backstage/cli | package.json | +| @types/supertest | package.json | +| @backstage/backend-test-utils | package.json | diff --git a/plugins/explore-react/knip-report.md b/plugins/explore-react/knip-report.md index 34e67d091a..0b4e23a04e 100644 --- a/plugins/explore-react/knip-report.md +++ b/plugins/explore-react/knip-report.md @@ -1,12 +1,11 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @types/react | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @types/react | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/explore/knip-report.md b/plugins/explore/knip-report.md index b63a8830f2..44a5bee885 100644 --- a/plugins/explore/knip-report.md +++ b/plugins/explore/knip-report.md @@ -1,16 +1,13 @@ # Knip report -## Unused devDependencies (9) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/plugin-catalog | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/firehydrant/knip-report.md b/plugins/firehydrant/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/firehydrant/knip-report.md +++ b/plugins/firehydrant/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/fossa/knip-report.md b/plugins/fossa/knip-report.md index 08495d977c..44a5bee885 100644 --- a/plugins/fossa/knip-report.md +++ b/plugins/fossa/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/gcalendar/knip-report.md b/plugins/gcalendar/knip-report.md index d90d7bd7a6..58fbe96097 100644 --- a/plugins/gcalendar/knip-report.md +++ b/plugins/gcalendar/knip-report.md @@ -6,15 +6,13 @@ |:------------------------------------|:-------------| | @maxim_mazurok/gapi.client.calendar | package.json | -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @types/sanitize-html | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @types/sanitize-html | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/gcp-projects/knip-report.md b/plugins/gcp-projects/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/gcp-projects/knip-report.md +++ b/plugins/gcp-projects/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/git-release-manager/knip-report.md b/plugins/git-release-manager/knip-report.md index 3187e43d3b..7d4e715dc1 100644 --- a/plugins/git-release-manager/knip-report.md +++ b/plugins/git-release-manager/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/github-actions/knip-report.md b/plugins/github-actions/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/github-actions/knip-report.md +++ b/plugins/github-actions/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/github-deployments/knip-report.md b/plugins/github-deployments/knip-report.md index 08495d977c..44a5bee885 100644 --- a/plugins/github-deployments/knip-report.md +++ b/plugins/github-deployments/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/github-issues/knip-report.md b/plugins/github-issues/knip-report.md index 5484ac86b2..ecf6480396 100644 --- a/plugins/github-issues/knip-report.md +++ b/plugins/github-issues/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/github-pull-requests-board/knip-report.md b/plugins/github-pull-requests-board/knip-report.md index 3ef6ce2cf7..ecf6480396 100644 --- a/plugins/github-pull-requests-board/knip-report.md +++ b/plugins/github-pull-requests-board/knip-report.md @@ -1,12 +1,11 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/gitops-profiles/knip-report.md b/plugins/gitops-profiles/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/gitops-profiles/knip-report.md +++ b/plugins/gitops-profiles/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/gocd/knip-report.md b/plugins/gocd/knip-report.md index 5c60390a31..2f750523b0 100644 --- a/plugins/gocd/knip-report.md +++ b/plugins/gocd/knip-report.md @@ -6,16 +6,14 @@ |:---|:-------------| | qs | package.json | -## Unused devDependencies (8) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/graphiql/knip-report.md b/plugins/graphiql/knip-report.md index db0c26367a..9022122cfc 100644 --- a/plugins/graphiql/knip-report.md +++ b/plugins/graphiql/knip-report.md @@ -7,15 +7,13 @@ | graphql | package.json | | graphql-ws | package.json | -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @types/codemirror | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @types/codemirror | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/graphql-voyager/knip-report.md b/plugins/graphql-voyager/knip-report.md index 3ef6ce2cf7..ecf6480396 100644 --- a/plugins/graphql-voyager/knip-report.md +++ b/plugins/graphql-voyager/knip-report.md @@ -1,12 +1,11 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/home/knip-report.md b/plugins/home/knip-report.md index b0aec89510..e9ae64e960 100644 --- a/plugins/home/knip-report.md +++ b/plugins/home/knip-report.md @@ -1,14 +1,11 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (4) | Name | Location | |:----------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/ilert/knip-report.md b/plugins/ilert/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/ilert/knip-report.md +++ b/plugins/ilert/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/jenkins-backend/knip-report.md b/plugins/jenkins-backend/knip-report.md index 586ac73fae..4e473a9f2e 100644 --- a/plugins/jenkins-backend/knip-report.md +++ b/plugins/jenkins-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (2) | Name | Location | diff --git a/plugins/jenkins/knip-report.md b/plugins/jenkins/knip-report.md index 34592ee915..ecf6480396 100644 --- a/plugins/jenkins/knip-report.md +++ b/plugins/jenkins/knip-report.md @@ -1,14 +1,11 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (4) -| Name | Location | -|:---------------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | -| @types/testing-library__jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/kafka/knip-report.md b/plugins/kafka/knip-report.md index 17bd287fbc..67f9dbc286 100644 --- a/plugins/kafka/knip-report.md +++ b/plugins/kafka/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| jest-when | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| jest-when | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/kubernetes-backend/knip-report.md b/plugins/kubernetes-backend/knip-report.md index 20f05141fc..29043eb8d9 100644 --- a/plugins/kubernetes-backend/knip-report.md +++ b/plugins/kubernetes-backend/knip-report.md @@ -1,14 +1,10 @@ # Knip report -## Unused dependencies (7) +## Unused dependencies (3) | Name | Location | |:-------------------|:-------------| -| yn | package.json | -| cors | package.json | | morgan | package.json | -| helmet | package.json | -| compression | package.json | | stream-buffers | package.json | | @jest-mock/express | package.json | diff --git a/plugins/kubernetes-node/knip-report.md b/plugins/kubernetes-node/knip-report.md index 24c942926b..f45a227afc 100644 --- a/plugins/kubernetes-node/knip-report.md +++ b/plugins/kubernetes-node/knip-report.md @@ -1,8 +1,14 @@ # Knip report -## Unused devDependencies (1) +## Unused devDependencies (7) -| Name | Location | -|:---------------|:-------------| -| @backstage/cli | package.json | +| Name | Location | +|:-------------------------------------|:-------------| +| msw | package.json | +| supertest | package.json | +| @backstage/cli | package.json | +| @backstage/backend-common | package.json | +| @backstage/backend-app-api | package.json | +| @backstage/backend-test-utils | package.json | +| @backstage/plugin-kubernetes-backend | package.json | diff --git a/plugins/kubernetes-react/knip-report.md b/plugins/kubernetes-react/knip-report.md index 953c3c2f9f..176a3af098 100644 --- a/plugins/kubernetes-react/knip-report.md +++ b/plugins/kubernetes-react/knip-report.md @@ -1,14 +1,13 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| jest-websocket-mock | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| jest-websocket-mock | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/kubernetes/knip-report.md b/plugins/kubernetes/knip-report.md index 6d80ad2943..b164678b81 100644 --- a/plugins/kubernetes/knip-report.md +++ b/plugins/kubernetes/knip-report.md @@ -16,14 +16,11 @@ | @kubernetes-models/base | package.json | | @kubernetes-models/apimachinery | package.json | -## Unused devDependencies (6) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/lighthouse/knip-report.md b/plugins/lighthouse/knip-report.md index 08495d977c..44a5bee885 100644 --- a/plugins/lighthouse/knip-report.md +++ b/plugins/lighthouse/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/linguist-backend/knip-report.md b/plugins/linguist-backend/knip-report.md index 93d1ed03cc..8588b69130 100644 --- a/plugins/linguist-backend/knip-report.md +++ b/plugins/linguist-backend/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) | Name | Location | |:----------------------------|:-------------| -| yn | package.json | | @backstage/plugin-auth-node | package.json | ## Unused devDependencies (5) diff --git a/plugins/linguist/knip-report.md b/plugins/linguist/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/linguist/knip-report.md +++ b/plugins/linguist/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/microsoft-calendar/knip-report.md b/plugins/microsoft-calendar/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/microsoft-calendar/knip-report.md +++ b/plugins/microsoft-calendar/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/newrelic-dashboard/knip-report.md b/plugins/newrelic-dashboard/knip-report.md index 3fa6192efd..24c942926b 100644 --- a/plugins/newrelic-dashboard/knip-report.md +++ b/plugins/newrelic-dashboard/knip-report.md @@ -1,11 +1,8 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (1) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------|:-------------| +| @backstage/cli | package.json | diff --git a/plugins/newrelic/knip-report.md b/plugins/newrelic/knip-report.md index 49caf552e3..a7fde3968b 100644 --- a/plugins/newrelic/knip-report.md +++ b/plugins/newrelic/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/nomad-backend/knip-report.md b/plugins/nomad-backend/knip-report.md index 8c164ce0a4..e31e20b852 100644 --- a/plugins/nomad-backend/knip-report.md +++ b/plugins/nomad-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (3) | Name | Location | diff --git a/plugins/nomad/knip-report.md b/plugins/nomad/knip-report.md index d8e2df9bd9..9f54e7f06d 100644 --- a/plugins/nomad/knip-report.md +++ b/plugins/nomad/knip-report.md @@ -1,12 +1,9 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| cross-fetch | package.json | -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/react | package.json | diff --git a/plugins/octopus-deploy/knip-report.md b/plugins/octopus-deploy/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/octopus-deploy/knip-report.md +++ b/plugins/octopus-deploy/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/opencost/knip-report.md b/plugins/opencost/knip-report.md index a42dca8cda..ae56051f88 100644 --- a/plugins/opencost/knip-report.md +++ b/plugins/opencost/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused devDependencies (3) +## Unused devDependencies (2) | Name | Location | |:--------------------------|:-------------| | @backstage/cli | package.json | -| @backstage/dev-utils | package.json | | @testing-library/jest-dom | package.json | diff --git a/plugins/org-react/knip-report.md b/plugins/org-react/knip-report.md index 8b68d31b4a..7b939bc6d9 100644 --- a/plugins/org-react/knip-report.md +++ b/plugins/org-react/knip-report.md @@ -6,7 +6,7 @@ |:--------------------------|:-------------| | @backstage/catalog-client | package.json | -## Unused devDependencies (7) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| @@ -15,6 +15,5 @@ | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/org/knip-report.md b/plugins/org/knip-report.md index 50cc635025..d2f6612ddc 100644 --- a/plugins/org/knip-report.md +++ b/plugins/org/knip-report.md @@ -1,20 +1,13 @@ # Knip report -## Unused devDependencies (13) +## Unused devDependencies (6) -| Name | Location | -|:------------------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/types | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/plugin-catalog | package.json | -| @backstage/catalog-client | package.json | -| @testing-library/user-event | package.json | -| @backstage/plugin-permission-react | package.json | -| @backstage/plugin-permission-common | package.json | +| Name | Location | +|:----------------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/types | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | +| @backstage/plugin-catalog | package.json | +| @testing-library/user-event | package.json | diff --git a/plugins/pagerduty/knip-report.md b/plugins/pagerduty/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/pagerduty/knip-report.md +++ b/plugins/pagerduty/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/periskop-backend/knip-report.md b/plugins/periskop-backend/knip-report.md index 8c164ce0a4..e31e20b852 100644 --- a/plugins/periskop-backend/knip-report.md +++ b/plugins/periskop-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (3) | Name | Location | diff --git a/plugins/periskop/knip-report.md b/plugins/periskop/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/periskop/knip-report.md +++ b/plugins/periskop/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/permission-react/knip-report.md b/plugins/permission-react/knip-report.md index bac77f66bc..fb60112aa2 100644 --- a/plugins/permission-react/knip-report.md +++ b/plugins/permission-react/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/playlist-backend/knip-report.md b/plugins/playlist-backend/knip-report.md index 02e48d9bc4..3e8751a225 100644 --- a/plugins/playlist-backend/knip-report.md +++ b/plugins/playlist-backend/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (1) -| Name | Location | -|:------------------|:-------------| -| yn | package.json | -| node-fetch | package.json | -| @backstage/config | package.json | +| Name | Location | +|:-----------|:-------------| +| node-fetch | package.json | ## Unused devDependencies (4) diff --git a/plugins/playlist/knip-report.md b/plugins/playlist/knip-report.md index f7eb3835e9..84aa502ad9 100644 --- a/plugins/playlist/knip-report.md +++ b/plugins/playlist/knip-report.md @@ -6,17 +6,15 @@ |:------------------------------------|:-------------| | @backstage/plugin-permission-common | package.json | -## Unused devDependencies (9) +## Unused devDependencies (7) -| Name | Location | -|:--------------------------|:-------------| -| swr | package.json | -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| swr | package.json | +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/proxy-backend/knip-report.md b/plugins/proxy-backend/knip-report.md index a62026b363..6895986f47 100644 --- a/plugins/proxy-backend/knip-report.md +++ b/plugins/proxy-backend/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused dependencies (5) +## Unused dependencies (4) | Name | Location | |:-------|:-------------| -| yn | package.json | | yup | package.json | | yaml | package.json | | uuid | package.json | diff --git a/plugins/puppetdb/knip-report.md b/plugins/puppetdb/knip-report.md index 4aa4b7205e..96247d3c96 100644 --- a/plugins/puppetdb/knip-report.md +++ b/plugins/puppetdb/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/rollbar-backend/knip-report.md b/plugins/rollbar-backend/knip-report.md index c9d04b52a7..a4bbbbb810 100644 --- a/plugins/rollbar-backend/knip-report.md +++ b/plugins/rollbar-backend/knip-report.md @@ -1,10 +1,9 @@ # Knip report -## Unused dependencies (5) +## Unused dependencies (4) | Name | Location | |:------------|:-------------| -| yn | package.json | | cors | package.json | | morgan | package.json | | fs-extra | package.json | diff --git a/plugins/rollbar/knip-report.md b/plugins/rollbar/knip-report.md index 95ee34d272..aa8f8b77be 100644 --- a/plugins/rollbar/knip-report.md +++ b/plugins/rollbar/knip-report.md @@ -6,14 +6,12 @@ |:-------|:-------------| | lodash | package.json | -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/scaffolder-react/knip-report.md b/plugins/scaffolder-react/knip-report.md index 57eae672dc..ffe4b02cf2 100644 --- a/plugins/scaffolder-react/knip-report.md +++ b/plugins/scaffolder-react/knip-report.md @@ -11,7 +11,7 @@ | zod-to-json-schema | package.json | | @backstage/catalog-client | package.json | -## Unused devDependencies (9) +## Unused devDependencies (8) | Name | Location | |:---------------------------------|:-------------| @@ -20,7 +20,6 @@ | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @backstage/plugin-catalog | package.json | | @testing-library/user-event | package.json | | @backstage/plugin-catalog-common | package.json | diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index bf7175c19f..d3f951fd6f 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -1,25 +1,23 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (4) | Name | Location | |:--------------------|:-------------| | immer | package.json | | git-url-parse | package.json | +| @rjsf/material-ui | package.json | | json-schema-library | package.json | -## Unused devDependencies (10) +## Unused devDependencies (7) | Name | Location | |:----------------------------|:-------------| | msw | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/plugin-catalog | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/search-backend/knip-report.md b/plugins/search-backend/knip-report.md index 21d04f2ad5..22d525923f 100644 --- a/plugins/search-backend/knip-report.md +++ b/plugins/search-backend/knip-report.md @@ -1,12 +1,5 @@ # Knip report -## Unused dependencies (2) - -| Name | Location | -|:----------------------------------|:-------------| -| yn | package.json | -| @backstage/plugin-permission-node | package.json | - ## Unused devDependencies (4) | Name | Location | diff --git a/plugins/search-react/knip-report.md b/plugins/search-react/knip-report.md index fcc7b94e86..3ab62f70ee 100644 --- a/plugins/search-react/knip-report.md +++ b/plugins/search-react/knip-report.md @@ -1,21 +1,13 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:-----------------|:-------------| -| @backstage/theme | package.json | - -## Unused devDependencies (9) +## Unused devDependencies (7) | Name | Location | |:-------------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @backstage/frontend-app-api | package.json | | @backstage/frontend-test-utils | package.json | diff --git a/plugins/search/knip-report.md b/plugins/search/knip-report.md index 290a23740b..c6b6402246 100644 --- a/plugins/search/knip-report.md +++ b/plugins/search/knip-report.md @@ -1,16 +1,13 @@ # Knip report -## Unused devDependencies (9) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| | history | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/sentry/knip-report.md b/plugins/sentry/knip-report.md index 89c276c630..8353ecad20 100644 --- a/plugins/sentry/knip-report.md +++ b/plugins/sentry/knip-report.md @@ -6,14 +6,12 @@ |:--------------|:-------------| | @date-io/core | package.json | -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/shortcuts/knip-report.md b/plugins/shortcuts/knip-report.md index 5484ac86b2..ecf6480396 100644 --- a/plugins/shortcuts/knip-report.md +++ b/plugins/shortcuts/knip-report.md @@ -1,13 +1,11 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/signals-backend/knip-report.md b/plugins/signals-backend/knip-report.md new file mode 100644 index 0000000000..03597de16c --- /dev/null +++ b/plugins/signals-backend/knip-report.md @@ -0,0 +1,19 @@ +# Knip report + +## Unused dependencies (3) + +| Name | Location | +|:----------------------|:-------------| +| node-fetch | package.json | +| @backstage/config | package.json | +| http-proxy-middleware | package.json | + +## Unused devDependencies (4) + +| Name | Location | +|:-----------------|:-------------| +| msw | package.json | +| supertest | package.json | +| @backstage/cli | package.json | +| @types/supertest | package.json | + diff --git a/plugins/signals-node/knip-report.md b/plugins/signals-node/knip-report.md new file mode 100644 index 0000000000..ef1a89a394 --- /dev/null +++ b/plugins/signals-node/knip-report.md @@ -0,0 +1,20 @@ +# Knip report + +## Unused dependencies (6) + +| Name | Location | +|:----------------------------|:-------------| +| ws | package.json | +| uuid | package.json | +| express | package.json | +| @backstage/config | package.json | +| @backstage/backend-common | package.json | +| @backstage/plugin-auth-node | package.json | + +## Unused devDependencies (2) + +| Name | Location | +|:---------------|:-------------| +| @types/express | package.json | +| @backstage/cli | package.json | + diff --git a/plugins/signals-react/knip-report.md b/plugins/signals-react/knip-report.md new file mode 100644 index 0000000000..b22feb3580 --- /dev/null +++ b/plugins/signals-react/knip-report.md @@ -0,0 +1,16 @@ +# Knip report + +## Unused dependencies (1) + +| Name | Location | +|:------------------|:-------------| +| @material-ui/core | package.json | + +## Unused devDependencies (3) + +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | + diff --git a/plugins/signals/knip-report.md b/plugins/signals/knip-report.md new file mode 100644 index 0000000000..7331067004 --- /dev/null +++ b/plugins/signals/knip-report.md @@ -0,0 +1,23 @@ +# Knip report + +## Unused dependencies (4) + +| Name | Location | +|:-------------------|:-------------| +| react-use | package.json | +| @material-ui/lab | package.json | +| @backstage/theme | package.json | +| @material-ui/icons | package.json | + +## Unused devDependencies (7) + +| Name | Location | +|:----------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| jest-websocket-mock | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | +| @testing-library/user-event | package.json | + diff --git a/plugins/sonarqube-backend/knip-report.md b/plugins/sonarqube-backend/knip-report.md index dfdfabd895..e03ed5c8a2 100644 --- a/plugins/sonarqube-backend/knip-report.md +++ b/plugins/sonarqube-backend/knip-report.md @@ -1,11 +1,5 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:---|:-------------| -| yn | package.json | - ## Unused devDependencies (5) | Name | Location | diff --git a/plugins/sonarqube/knip-report.md b/plugins/sonarqube/knip-report.md index 3f33f551fb..44a5bee885 100644 --- a/plugins/sonarqube/knip-report.md +++ b/plugins/sonarqube/knip-report.md @@ -1,21 +1,13 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (6) -| Name | Location | -|:-------------------------|:-------------| -| @backstage/catalog-model | package.json | - -## Unused devDependencies (8) - -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/splunk-on-call/knip-report.md b/plugins/splunk-on-call/knip-report.md index 44e48cb6b2..3770bb993e 100644 --- a/plugins/splunk-on-call/knip-report.md +++ b/plugins/splunk-on-call/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/stack-overflow/knip-report.md b/plugins/stack-overflow/knip-report.md index e70def7c45..5553b3a1f7 100644 --- a/plugins/stack-overflow/knip-report.md +++ b/plugins/stack-overflow/knip-report.md @@ -1,19 +1,12 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | -|:--------------------------|:-------------| -| @testing-library/jest-dom | package.json | - -## Unused devDependencies (6) +## Unused devDependencies (5) | Name | Location | |:----------------------------|:-------------| | msw | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/test-utils | package.json | | @testing-library/react | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/stackstorm/knip-report.md b/plugins/stackstorm/knip-report.md index 08495d977c..44a5bee885 100644 --- a/plugins/stackstorm/knip-report.md +++ b/plugins/stackstorm/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/tech-insights/knip-report.md b/plugins/tech-insights/knip-report.md index 4346521955..9679afeb54 100644 --- a/plugins/tech-insights/knip-report.md +++ b/plugins/tech-insights/knip-report.md @@ -1,12 +1,10 @@ # Knip report -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/tech-radar/knip-report.md b/plugins/tech-radar/knip-report.md index 7854337bc3..8fc787027b 100644 --- a/plugins/tech-radar/knip-report.md +++ b/plugins/tech-radar/knip-report.md @@ -1,15 +1,13 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (6) | Name | Location | |:-------------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @backstage/frontend-test-utils | package.json | diff --git a/plugins/techdocs-addons-test-utils/knip-report.md b/plugins/techdocs-addons-test-utils/knip-report.md index 6772f6c64a..79290793ca 100644 --- a/plugins/techdocs-addons-test-utils/knip-report.md +++ b/plugins/techdocs-addons-test-utils/knip-report.md @@ -6,11 +6,10 @@ |:--------------------------|:-------------| | @backstage/plugin-catalog | package.json | -## Unused devDependencies (3) +## Unused devDependencies (2) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:---------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | diff --git a/plugins/techdocs-module-addons-contrib/knip-report.md b/plugins/techdocs-module-addons-contrib/knip-report.md index 05a106a71a..88c7858e93 100644 --- a/plugins/techdocs-module-addons-contrib/knip-report.md +++ b/plugins/techdocs-module-addons-contrib/knip-report.md @@ -1,6 +1,6 @@ # Knip report -## Unused devDependencies (6) +## Unused devDependencies (5) | Name | Location | |:---------------------------------------------|:-------------| @@ -8,6 +8,5 @@ | @testing-library/dom | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @backstage/plugin-techdocs-addons-test-utils | package.json | diff --git a/plugins/techdocs-react/knip-report.md b/plugins/techdocs-react/knip-report.md index 95c382cd51..912e0d57b9 100644 --- a/plugins/techdocs-react/knip-report.md +++ b/plugins/techdocs-react/knip-report.md @@ -7,13 +7,12 @@ | react-helmet | package.json | | @material-ui/core | package.json | -## Unused devDependencies (5) +## Unused devDependencies (4) -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @backstage/theme | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @backstage/theme | package.json | +| @backstage/test-utils | package.json | +| @testing-library/react | package.json | diff --git a/plugins/techdocs/knip-report.md b/plugins/techdocs/knip-report.md index f78d6cfa0d..0aa86b7492 100644 --- a/plugins/techdocs/knip-report.md +++ b/plugins/techdocs/knip-report.md @@ -7,18 +7,16 @@ | jss | package.json | | @backstage/theme | package.json | -## Unused devDependencies (10) +## Unused devDependencies (8) | Name | Location | |:-------------------------------------------------|:-------------| | canvas | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | | @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | | @backstage/plugin-techdocs-module-addons-contrib | package.json | diff --git a/plugins/todo/knip-report.md b/plugins/todo/knip-report.md index a1b2118648..9679afeb54 100644 --- a/plugins/todo/knip-report.md +++ b/plugins/todo/knip-report.md @@ -1,19 +1,10 @@ # Knip report -## Unused dependencies (1) +## Unused devDependencies (3) -| Name | Location | -|:-------------------|:-------------| -| @material-ui/icons | package.json | - -## Unused devDependencies (6) - -| Name | Location | -|:--------------------------|:-------------| -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:-----------------------|:-------------| +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | diff --git a/plugins/user-settings-backend/knip-report.md b/plugins/user-settings-backend/knip-report.md index 57512bd519..22d525923f 100644 --- a/plugins/user-settings-backend/knip-report.md +++ b/plugins/user-settings-backend/knip-report.md @@ -1,13 +1,5 @@ # Knip report -## Unused dependencies (3) - -| Name | Location | -|:------------------|:-------------| -| yn | package.json | -| winston | package.json | -| @backstage/config | package.json | - ## Unused devDependencies (4) | Name | Location | diff --git a/plugins/user-settings/knip-report.md b/plugins/user-settings/knip-report.md index 7d8fa19337..53337fea0b 100644 --- a/plugins/user-settings/knip-report.md +++ b/plugins/user-settings/knip-report.md @@ -6,17 +6,14 @@ |:-----------------|:-------------| | @backstage/theme | package.json | -## Unused devDependencies (9) +## Unused devDependencies (6) | Name | Location | |:----------------------------|:-------------| | msw | package.json | | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | -| @backstage/plugin-catalog | package.json | | @testing-library/user-event | package.json | diff --git a/plugins/vault-backend/knip-report.md b/plugins/vault-backend/knip-report.md index 6db72eb479..9597d52c23 100644 --- a/plugins/vault-backend/knip-report.md +++ b/plugins/vault-backend/knip-report.md @@ -1,22 +1,11 @@ # Knip report -## Unused dependencies (4) +## Unused devDependencies (4) -| Name | Location | -|:------------|:-------------| -| yn | package.json | -| cors | package.json | -| helmet | package.json | -| compression | package.json | - -## Unused devDependencies (6) - -| Name | Location | -|:------------------------------|:-------------| -| msw | package.json | -| supertest | package.json | -| @backstage/cli | package.json | -| @types/supertest | package.json | -| @types/compression | package.json | -| @backstage/backend-test-utils | package.json | +| Name | Location | +|:-----------------|:-------------| +| msw | package.json | +| supertest | package.json | +| @backstage/cli | package.json | +| @types/supertest | package.json | diff --git a/plugins/vault/knip-report.md b/plugins/vault/knip-report.md index 08495d977c..a469608db4 100644 --- a/plugins/vault/knip-report.md +++ b/plugins/vault/knip-report.md @@ -1,15 +1,12 @@ # Knip report -## Unused devDependencies (8) +## Unused devDependencies (5) -| Name | Location | -|:--------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | -| @backstage/test-utils | package.json | -| @testing-library/react | package.json | -| @backstage/core-app-api | package.json | -| @testing-library/jest-dom | package.json | +| Name | Location | +|:------------------------|:-------------| +| msw | package.json | +| @backstage/cli | package.json | +| @testing-library/dom | package.json | +| @testing-library/react | package.json | +| @backstage/core-app-api | package.json | diff --git a/plugins/xcmetrics/knip-report.md b/plugins/xcmetrics/knip-report.md index b0aec89510..d0ad73b69c 100644 --- a/plugins/xcmetrics/knip-report.md +++ b/plugins/xcmetrics/knip-report.md @@ -1,14 +1,12 @@ # Knip report -## Unused devDependencies (7) +## Unused devDependencies (5) | Name | Location | |:----------------------------|:-------------| | @backstage/cli | package.json | | @testing-library/dom | package.json | -| @backstage/dev-utils | package.json | | @backstage/test-utils | package.json | | @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | | @testing-library/user-event | package.json | diff --git a/yarn.lock b/yarn.lock index 838a17e680..80827873f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28224,7 +28224,7 @@ __metadata: languageName: node linkType: hard -"fastq@npm:^1.15.0": +"fastq@npm:^1.15.0, fastq@npm:^1.6.0": version: 1.17.0 resolution: "fastq@npm:1.17.0" dependencies: @@ -28233,15 +28233,6 @@ __metadata: languageName: node linkType: hard -"fastq@npm:^1.6.0": - version: 1.6.1 - resolution: "fastq@npm:1.6.1" - dependencies: - reusify: ^1.0.4 - checksum: e9940b30758a6a6bb3595d965accb4c86b85c7b594c3387788c480a83ac5e43d933eccb6b41f510d0c944aa17af340f432b4efe791f0d0bbe0e3e06dfdcda610 - languageName: node - linkType: hard - "fault@npm:^1.0.0": version: 1.0.4 resolution: "fault@npm:1.0.4" @@ -29575,14 +29566,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.5, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": - version: 4.2.10 - resolution: "graceful-fs@npm:4.2.10" - checksum: 3f109d70ae123951905d85032ebeae3c2a5a7a997430df00ea30df0e3a6c60cf6689b109654d6fdacd28810a053348c4d14642da1d075049e6be1ba5216218da - languageName: node - linkType: hard - -"graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.2.11": +"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.5, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: ac85f94da92d8eb6b7f5a8b20ce65e43d66761c55ce85ac96df6865308390da45a8d3f0296dd3a663de65d30ba497bd46c696cc1e248c72b13d6d567138a4fc7 @@ -30587,14 +30571,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^5.1.4, ignore@npm:^5.2.0, ignore@npm:^5.2.4": - version: 5.2.4 - resolution: "ignore@npm:5.2.4" - checksum: 3d4c309c6006e2621659311783eaea7ebcd41fe4ca1d78c91c473157ad6666a57a2df790fe0d07a12300d9aac2888204d7be8d59f9aaf665b1c7fcdb432517ef - languageName: node - linkType: hard - -"ignore@npm:^5.1.8": +"ignore@npm:^5.1.4, ignore@npm:^5.1.8, ignore@npm:^5.2.0, ignore@npm:^5.2.4": version: 5.3.0 resolution: "ignore@npm:5.3.0" checksum: 2736da6621f14ced652785cb05d86301a66d70248597537176612bd0c8630893564bd5f6421f8806b09e8472e75c591ef01672ab8059c07c6eb2c09cefe04bf9 @@ -41422,14 +41399,7 @@ __metadata: languageName: node linkType: hard -"run-parallel@npm:^1.1.9": - version: 1.1.9 - resolution: "run-parallel@npm:1.1.9" - checksum: 8bbeda89c2c1dbfeaa0cdb9f17e93a011ac58ef77339ef1e61a62208b67c8e7b661891df677bb7c5be84b8792e27061177368d500b3c731bb019b0c71e667591 - languageName: node - linkType: hard - -"run-parallel@npm:^1.2.0": +"run-parallel@npm:^1.1.9, run-parallel@npm:^1.2.0": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" dependencies: @@ -42572,7 +42542,7 @@ __metadata: languageName: node linkType: hard -"ssri@npm:10.0.5": +"ssri@npm:10.0.5, ssri@npm:^10.0.0": version: 10.0.5 resolution: "ssri@npm:10.0.5" dependencies: @@ -42581,15 +42551,6 @@ __metadata: languageName: node linkType: hard -"ssri@npm:^10.0.0": - version: 10.0.4 - resolution: "ssri@npm:10.0.4" - dependencies: - minipass: ^5.0.0 - checksum: fb14da9f8a72b04eab163eb13a9dda11d5962cd2317f85457c4e0b575e9a6e0e3a6a87b5bf122c75cb36565830cd5f263fb457571bf6f1587eb5f95d095d6165 - languageName: node - linkType: hard - "ssri@npm:^8.0.0, ssri@npm:^8.0.1": version: 8.0.1 resolution: "ssri@npm:8.0.1"