Skip to content

Possible missing cycle #25

@vinpogo

Description

@vinpogo

I currently am running dependency cruiser in my project and wanted to adopt rev-dep. I noticed some discrepancies in numbers reported. Although this example reports the same number of circular issues, it shows the underlying issue (i hope 🤞 )

Graph

  • a.ts imports b.ts and c.ts
  • b.ts imports a.ts and c.ts
  • c.ts imports a.ts and b.ts

Observed discrepancy

Both tools report 3 circular issues, but one cycle differs:

  • dependency-cruiser reports:

    • a.ts -> b.ts -> a.ts
    • a.ts -> c.ts -> a.ts
    • b.ts -> c.ts -> b.ts
  • rev-dep reports:

    • a.ts -> b.ts -> a.ts
    • a.ts -> b.ts -> c.ts -> a.ts
    • b.ts -> c.ts -> b.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions