Skip to content

Why is a duplicate include file an error? #189

@mbakeranalecta

Description

@mbakeranalecta

Currently and included file is checked against a list of included files and an error is raised it a duplicate include is found.

I suspect this was installed to detect and prevent circular includes, were a file includes itself or a file that includes itself. This is an important check, but there could be legitimate reasons to include the same file twice.

Is there sufficient reason to try an make this check more sophisticated so that it allows simple duplicate includes but prevents circular ones?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions