Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Cvetan's avatar

How to make phpcs in PhpStorm not report errors in blade files?

The phpcs currently reports error for blade files with no php code.

In the configured extensions is this currently: php,js,css,inc. Can I somehow say it: "Watch PHP files but not blade"?

I know I can acomplish this with custom scope, but I was wondering if the solution can be more elegant in this manner?

0 likes
3 replies
Cvetan's avatar

@DIEGOAURINO - Thanks. In that case I will stick with scopes inside PhpStorm. I just thought there is more elegant way in settings itself.

ralphmrivera's avatar

This sample ruleset.xml will block a Internal.NoCodeFoundrule in a blade file.

<?xml version="1.0"?>
<ruleset name="Custom Standard">

    <rule ref="PSR1"/>

    <rule ref="Internal.NoCodeFound">
        <exclude-pattern>*.blade.php</exclude-pattern>
    </rule>

</ruleset>

Please or to participate in this conversation.