backstage/community-plugins

๐Ÿ”ง 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?

Are you willing to submit PR?

No, I don't have time to work on this right now

Contributions welcome! ๐Ÿš€

@awanlin I'd like to take a look at this, can you assign it me?

There's a thread on Discord related to Knip that's worth reviewing: https://discord.com/channels/687207715902193673/1272567797976793149