When does poly think Warning 207 applies?
Warning 207 - Unnecessary components were found in project.
Triggered if components were defined in a project that are not used by any of
its bricks. Development is only checked if :dev is passed in and is only performed
by the check command (not test and info). To ignore this warning, put the component
name in the :necessary vector for a project in :projects in ./workspace.edn.
See an example here:
I had projects which were giving a warning about an unused component. That component was only being used in the project tests. But now I'm also seeing warnings about an unused component that is being used in the base's sources?This seems like a bug. Unfortunately I can't share the code
Sorry to hear. Can you create a small sample project that reproduces the problem?
hmm
maybe
You were right, this is a bug. It should include the bricks used by tests for the project itself too. Can you create an issue @teemu.kaukoranta?
Can do
I hope this is clear 🙂 https://github.com/polyfy/polylith/issues/531
Thanks!