Skip to content

Commit 7c56d99

Browse files
authored
include knip report checks in ci (#4046)
* include knip report checks in ci Signed-off-by: Kashish Mittal <kmittal@redhat.com> * add logs to debug workflow Signed-off-by: Kashish Mittal <kmittal@redhat.com> * fix workflow Signed-off-by: Kashish Mittal <kmittal@redhat.com> * regen knip reports Signed-off-by: Kashish Mittal <kmittal@redhat.com> * ignore prettier for knip-report.md Signed-off-by: Kashish Mittal <kmittal@redhat.com> * add build:knip-reports script to all workspaces Signed-off-by: Kashish Mittal <kmittal@redhat.com> --------- Signed-off-by: Kashish Mittal <kmittal@redhat.com>
1 parent 98223b1 commit 7c56d99

File tree

100 files changed

+122
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+122
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,24 @@ jobs:
9292

9393
- name: prettier
9494
run: yarn prettier:check
95+
96+
- name: read knip-reports flag from bcp.json
97+
id: bcp
98+
run: |
99+
echo "Checking for bcp.json in workspace: workspaces/${{ matrix.workspace }}"
100+
if [ -f bcp.json ]; then
101+
echo "Reading knip-reports flag..."
102+
KNIP_REPORTS=$(jq -r '.["knip-reports"]' bcp.json)
103+
echo "knip-reports value: $KNIP_REPORTS"
104+
echo "knip_reports=$KNIP_REPORTS" >> $GITHUB_OUTPUT
105+
else
106+
echo "bcp.json not found. Defaulting knip_reports to false."
107+
echo "knip_reports=false" >> $GITHUB_OUTPUT
108+
fi
109+
110+
- name: check knip reports
111+
if: ${{ steps.bcp.outputs.knip_reports == 'true' }}
112+
run: yarn build:knip-reports --ci
95113

96114
- name: check api reports and generate API reference
97115
run: yarn build:api-reports:only --ci

workspaces/acr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build:all": "backstage-cli repo build --all",
1919
"build:api-reports": "yarn build:api-reports:only",
2020
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
21+
"build:knip-reports": "backstage-repo-tools knip-reports",
2122
"clean": "backstage-cli repo clean",
2223
"test": "backstage-cli repo test",
2324
"test:all": "backstage-cli repo test --coverage",

workspaces/acs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build-image": "yarn workspace backend build-image",
1515
"build:api-reports": "yarn build:api-reports:only",
1616
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
17+
"build:knip-reports": "backstage-repo-tools knip-reports",
1718
"tsc": "tsc",
1819
"tsc:full": "tsc --skipLibCheck false --incremental false",
1920
"clean": "backstage-cli repo clean",

workspaces/adr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/airbrake/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/allure/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/amplication/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:all": "backstage-cli repo build --all",
1212
"build:api-reports": "yarn build:api-reports:only --tsc",
1313
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
14+
"build:knip-reports": "backstage-repo-tools knip-reports",
1415
"clean": "backstage-cli repo clean",
1516
"test": "backstage-cli repo test",
1617
"test:all": "backstage-cli repo test --coverage",

workspaces/analytics/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/announcements/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:all": "backstage-cli repo build --all",
1212
"build:api-reports": "yarn build:api-reports:only --tsc",
1313
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
14+
"build:knip-reports": "backstage-repo-tools knip-reports",
1415
"tsc": "tsc",
1516
"tsc:full": "tsc --skipLibCheck false --incremental false",
1617
"clean": "backstage-cli repo clean",

workspaces/apache-airflow/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/apollo-explorer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/azure-resources/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build:all": "backstage-cli repo build --all",
1313
"build:api-reports": "yarn build:api-reports:only --tsc",
1414
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
15+
"build:knip-reports": "backstage-repo-tools knip-reports",
1516
"clean": "backstage-cli repo clean",
1617
"test": "backstage-cli repo test",
1718
"test:all": "backstage-cli repo test --coverage",

workspaces/azure-sites/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/badges/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/bazaar/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/bitrise/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/cloudbuild/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/code-climate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/code-coverage/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/codescene/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/confluence/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"new": "backstage-cli new --scope @backstage-community",
2626
"build:api-reports": "yarn build:api-reports:only --tsc",
2727
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
28+
"build:knip-reports": "backstage-repo-tools knip-reports",
2829
"postinstall": "cd ../../ && yarn install"
2930
},
3031
"workspaces": {

workspaces/copilot/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"new": "backstage-cli new --scope @backstage-community",
2222
"build:api-reports": "yarn build:api-reports:only --tsc",
2323
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
24+
"build:knip-reports": "backstage-repo-tools knip-reports",
2425
"postinstall": "cd ../../ && yarn install"
2526
},
2627
"workspaces": {

workspaces/cost-insights/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/dynatrace/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/entity-feedback/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/entity-validation/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/explore/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/feedback/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build:all": "backstage-cli repo build --all",
1313
"build:api-reports": "yarn build:api-reports:only",
1414
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
15+
"build:knip-reports": "backstage-repo-tools knip-reports",
1516
"clean": "backstage-cli repo clean",
1617
"test": "backstage-cli repo test",
1718
"test:all": "backstage-cli repo test --coverage",

workspaces/firehydrant/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/fossa/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/gcalendar/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/gcp-projects/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/git-release-manager/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --allow-warnings plugins/git-release-manager --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/github-actions/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"new": "backstage-cli new --scope @backstage-community",
2323
"build:api-reports": "yarn build:api-reports:only --tsc",
2424
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
25+
"build:knip-reports": "backstage-repo-tools knip-reports",
2526
"postinstall": "cd ../../ && yarn install"
2627
},
2728
"workspaces": {

workspaces/github-deployments/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/github-discussions/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build:all": "backstage-cli repo build --all",
1313
"build:api-reports": "yarn build:api-reports:only --tsc",
1414
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
15+
"build:knip-reports": "backstage-repo-tools knip-reports",
1516
"clean": "backstage-cli repo clean",
1617
"test": "backstage-cli repo test",
1718
"test:all": "backstage-cli repo test --coverage",

workspaces/github-issues/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/github-pull-requests-board/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/gitops-profiles/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/gocd/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/grafana/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build:all": "backstage-cli repo build --all",
1313
"build:api-reports": "yarn build:api-reports:only --tsc",
1414
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type --validate-release-tags",
15+
"build:knip-reports": "backstage-repo-tools knip-reports",
1516
"clean": "backstage-cli repo clean",
1617
"test": "backstage-cli repo test",
1718
"test:all": "backstage-cli repo test --coverage",

workspaces/graphiql/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"new": "backstage-cli new --scope @backstage-community",
2020
"build:api-reports": "yarn build:api-reports:only --tsc",
2121
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type --validate-release-tags",
22+
"build:knip-reports": "backstage-repo-tools knip-reports",
2223
"postinstall": "cd ../../ && yarn install"
2324
},
2425
"workspaces": {

workspaces/graphql-voyager/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/ilert/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"new": "backstage-cli new --scope @backstage-community",
2121
"build:api-reports": "yarn build:api-reports:only --tsc",
2222
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
23+
"build:knip-reports": "backstage-repo-tools knip-reports",
2324
"postinstall": "cd ../../ && yarn install"
2425
},
2526
"workspaces": {

workspaces/jenkins/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"new": "backstage-cli new --scope @backstage-community",
2323
"build:api-reports": "yarn build:api-reports:only --tsc",
2424
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --allow-warnings plugins/jenkins --validate-release-tags",
25+
"build:knip-reports": "backstage-repo-tools knip-reports",
2526
"postinstall": "cd ../../ && yarn install"
2627
},
2728
"workspaces": {

workspaces/jfrog-artifactory/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:all": "backstage-cli repo build --all",
1212
"build:api-reports": "yarn build:api-reports:only",
1313
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
14+
"build:knip-reports": "backstage-repo-tools knip-reports",
1415
"clean": "backstage-cli repo clean",
1516
"test": "backstage-cli repo test",
1617
"test:all": "backstage-cli repo test --coverage",

0 commit comments

Comments
 (0)