Skip to content

Not respecting standards file #40

@lode

Description

@lode

I have an action setup exactly as in the readme (https://github.com/tinovyatkin/action-php-codesniffer#usage), and have a phpcs.xml in the root of the repository which looks alike this:

<?xml version="1.0"?> <ruleset>	<arg name="colors"/>	<file>.</file>	<exclude-pattern>./vendor/*</exclude-pattern>	<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>	<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>	<rule ref="PSR2.Files.EndFileNewline"/> </ruleset> 

I'm including a few specific rules and no generic standard. However, I get annotations referring to Generic.Files.LineLength.TooLong and PEAR.WhiteSpace.ScopeIndent.Incorrect and others which I didn't include.

It seems thus as if my standards file is not respected/recognized and a default standard is used. Does anyone know what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions