Repository navigation
fix(tech-radar): enable knip reports - #11986
Open
armnkumar321-spec wants to merge 3 commits into
Open
armnkumar321-spec wants to merge 3 commits into
armnkumar321-spec wants to merge 3 commits into
Conversation
Opt the tech-radar workspace into knip reports and remove the dependencies it flags as unused. @material-ui/core stays in app-next because @backstage/theme and @material-ui/icons declare it as a peer dependency. core-compat-api, core-components and @material-ui/icons stay because they are imported by src/components/Sidebar.tsx, which tsc still compiles. Refs backstage#5992 Signed-off-by: Aman Kumar <[email protected]>
Contributor
Changed Packages
|
Signed-off-by: AMAN KUMAR <[email protected]>
Signed-off-by: AMAN KUMAR <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, I just made a Pull Request!
Part of #5992. Opts the
tech-radarworkspace into knip reports and removes the dependencies knip flags as unused.Left in the
app-nextreport on purpose:@material-ui/core: not imported directly, but@backstage/themeand@material-ui/iconsdeclare it as a peer dependency. Removing it introduces a new unmet-peer warning onyarn install.@backstage/core-compat-api,@backstage/core-components,@material-ui/icons: only imported bysrc/components/Sidebar.tsx, which nothing references, so knip doesn't count them.tscstill compiles that file, so they can't be dropped on their own. The jenkins workspace kept the same leftovers. If you'd rather I delete the unusedSidebar.tsxand these three deps in this PR, I'm happy to.knip-report.mdis added to.prettierignore, matching the other knip-enabled workspaces. Only@backstage-community/plugin-tech-radar-backendis published and had adependencieschange (node-fetch), so it's the only package with a changeset;app,app-nextandbackendare private.Checked locally on Node 24 in
workspaces/tech-radar:yarn tsc:full,yarn test(17 suites, 30 tests),yarn build:knip-reports --ci,yarn prettier:check,yarn build:api-reports:only --ci,yarn backstage-cli repo build --all,yarn backstage-cli repo lint,yarn fix --check/--check --publish, the lockfile-duplicates script andverify-changesets.jsall pass.Prepared with help from Claude Code.
✔️ Checklist
Signed-off-byline in the message. (more info)