Skip to content

Paths excluded in custom phpcs.xml file aren't ignored #29

Closed
@andrewandante

Description

@andrewandante

We are using a custom phpcs.xml file, which contains the line:

<ruleset name="Test">
	<exclude-pattern>*/storage/*</exclude-pattern>
</ruleset>

To avoid scanning some Laravel stuff. On our test repo, we have the file tests/storage/IgnoreThisTest.php which, when running locally, is properly ignored. However, when the action runs it seems to copy the file over into a flat directory so it's not properly ignored and has our runs fail.

I'd think this could be remedied by duplicating the folder structure when creating temp files, but also if something is being excluded based on name, it should have the name the same - is there any particular reason the tmp files have random names?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions