Skip to content

Check if namespace is consistent with file path #97

@martinobordin

Description

@martinobordin

Hi,
is it possible to define a rule to check if the namespace of a class is consistent with its file path?

i.e.
file MyClass.cs inside MyCompany/MyLibrary/DataAccess should have the namespace MyCompany.MyLibrary.DataAccess

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