Skip to content

PSR-4 does not work with different composer.json indenting / layout #1

@jorismak

Description

@jorismak

When trying out the init functions (which I miss the most from other environments), I noticed the initial namespace was wrong.
(src used for the directory instead of App as in composer.json).

When diving in the source, I'm happy to see there is actually a bit of PSR-4 support for this!

But... it matches the psr-4 lines literally, including spaces.

My composer.json is indented differently (and I didn't touch it up manually or something).

Is it possible to use a regex for this to ignore the amount of whitespace on a line?
(Me not knowing anything about lua).

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