We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
--standard=SlevomatCodingStandard
Files
Any thoughts?
The text was updated successfully, but these errors were encountered:
Looking at https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file I think that doesn't work on doc block. Requires the // I don't find any examples in that way.
//
Sorry, something went wrong.
No branches or pull requests
Hey, my friend.
In a particular file:
Doesn't work:
Though, this directive is honored:
It will be honored when run with the
--standard=SlevomatCodingStandard
specified. Also otherFiles
directives are not disabling as expected.Any thoughts?
The text was updated successfully, but these errors were encountered: