Skip to content

Find phpcs.xml config file in parent directories #626

Closed
@petersendidit

Description

@petersendidit

If you run phpcs from a directory below the level that the phpcs.xml file is phpcs doesn't use that config.

After using eslint for a while I have gotten use to being able to call the eslint command from any directory and it honoring the .eslintrc config. Eslint handles this with a findInDirectoryOrParent method: https://github.com/eslint/eslint/blob/master/lib/file-finder.js#L57

This would help editors also to be able to easily pick up the phpcs.xml config

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions