Skip to content

Commit 260ddaf

Browse files
authored
fix(SunAsteriskLaravel): exclude "missing variable" in database/factories (#1)
Currently, `/** @var \Illuminate\Database\Eloquent\Factory */` will be detected as error in Laravel's factory files. It should be excluded from the Laravel project. This PR will exclude `SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable` in `database/factories` folder of `SunAsteriskLaravel` ruleset.
1 parent 83507d2 commit 260ddaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SunAsteriskLaravel/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
</property>
4242
</properties>
4343
</rule>
44+
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable">
45+
<exclude-pattern>database/factories</exclude-pattern>
46+
</rule>
4447

4548
<!-- Migrations classes are different from file names -->
4649
<rule ref="Squiz.Classes.ClassFileName">

0 commit comments

Comments
 (0)