Skip to content

Overriding Slevomat Files standard in a file #8

@MikeiLL

Description

@MikeiLL

Hey, my friend.

In a particular file:

<?php
/**
 * File Name
 *
 * @phpcs:disable SlevomatCodingStandard.Files.FileLength.FileTooLong
 * /

Doesn't work:

   1 | ERROR   | [ ] Your file is too long. Currently using 444 lines. Can be up to 260 lines.
     |         |     (SlevomatCodingStandard.Files.FileLength.FileTooLong)

Though, this directive is honored:

@phpcs:disable SlevomatCodingStandard.Classes.ClassLength.ClassTooLong

It will be honored when run with the --standard=SlevomatCodingStandard specified. Also other Files directives are not disabling as expected.

Any thoughts?

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