Skip to content

Node ID collision when multiple files share the same filename (e.g. ASP.NET Razor Pages) #550

Description

@tetiz123

Problem

In ASP.NET Razor Pages projects, every page follows the convention:

Pages/Attendance/Index.cshtml.cs → class IndexModel
Pages/Approval/Index.cshtml.cs → class IndexModel
Pages/Overtime/Index.cshtml.cs → class IndexModel
Pages/RemoteWork/Index.cshtml.cs → class IndexModel

All four files have the same filename (Index.cshtml.cs) and the same class name (IndexModel).
graphify merges them into a single node (index_cshtml_indexmodel), which makes the graph incorrect for navigation.

Request

Please add an option like --full-path-ids that includes the folder structure in node IDs:

attendance_index_cshtml_indexmodel
approval_index_cshtml_indexmodel
overtime_index_cshtml_indexmodel
remotework_index_cshtml_indexmodel

This would also help other frameworks that use convention-based naming (e.g. Next.js page.tsx files).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions