๐ง Repository: Use Knip
awanlin opened this issue ยท 3 comments
๐ Description
Note: logging this here as it would impact all plugins.
We started to use Knip in the main Backstage repo and we also use it for the Demo site and it's terribly helpful at keeping things neat and tidy. We should implement it here as well.
I think the method used in the Backstage repo makes sense where it generates an report and is currently not causing things to fail. From there maybe we can look at a way to make it opt in per workspace and then mandatory over time.
๐ Expected behavior
We have tooling that will report on unused files, dependencies and exports.
๐ Current Behavior
We DO NOT have tooling that will report on unused files, dependencies and exports.
๐ Reproduction steps
N/A
๐ Provide the context for the Bug.
Having a tool like Knip in place just makes it easier to maintain your plugin as it let's you know what isn't being used easily and you can address it right away. This means plugins are in a better state and are just a bit better quality.
๐ Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
๐ข Have you read the Code of Conduct?
- I have read the Code of Conduct
Are you willing to submit PR?
No, I don't have time to work on this right now
Contributions welcome! ๐
There's a thread on Discord related to Knip that's worth reviewing: https://discord.com/channels/687207715902193673/1272567797976793149