Skip to content

current ruleset prevents to exclude everything except certain folders #159

@igmoweb

Description

@igmoweb

This commit introduced a new line in the ruleset file:

<file>.</file>

And that's preventing to use HM coding standards in projects that needs to ignore everything except certain folders. Apparently, phpcs does respect the HM line instead of the one inside the project xml. Why? Who knows but if I use <file>path/to/something/</file> phpcs does not respect it and for some reason it doesn't queue any file to lint.

The target of adding that line was to simplify CLI commands and avoid that annoying . when running phpcs commands. I think is better to be annoyed by this that prevent different folder structures in our projects but I'm opening this to create a discussion about different strategies if there are.

More in the Slack conversation

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions