Suggest an idea for Knip
👋 webpro and folks!
At the moment, knip docs mention circular dependency tracking as something that's out of scope of knip.
https://knip.dev/reference/related-tooling#circular-dependencies
|
## Circular dependencies |
|
|
|
Knip has no issues with circular dependencies, and does not report them. Tools |
|
that do support this include [DPDM][5], [Madge][6] and [skott][7]. |
|
|
I wonder if that's a strategic decision or a feature that can be eventually added at some point.
I use knip in a couple of projects and it's a really useful source of feedback. Since exports are already tracked, knip must have already built an import graph that could be used for searching cycles in it. The existing config system is a perfect fit for exceptions, if necessary.
I am currently using dpdm to fill in the gap and it works, but feels to occupy in the same linting niche as knip. Unfortunately, dpdm cannot be configured via dpdm.config.ts (acrazing/dpdm#65) and there is no way to define a list of known exceptions.
WDYT of including circular dependency scanning into knip?
Suggest an idea for Knip
👋 webpro and folks!
At the moment, knip docs mention circular dependency tracking as something that's out of scope of knip.
https://knip.dev/reference/related-tooling#circular-dependencies
knip/packages/docs/src/content/docs/reference/related-tooling.md
Lines 28 to 32 in b255195
I wonder if that's a strategic decision or a feature that can be eventually added at some point.
I use knip in a couple of projects and it's a really useful source of feedback. Since exports are already tracked, knip must have already built an import graph that could be used for searching cycles in it. The existing config system is a perfect fit for exceptions, if necessary.
I am currently using
dpdmto fill in the gap and it works, but feels to occupy in the same linting niche as knip. Unfortunately,dpdmcannot be configured viadpdm.config.ts(acrazing/dpdm#65) and there is no way to define a list of known exceptions.WDYT of including circular dependency scanning into knip?