Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 154b18e

Browse files
Forbid Trait suffix (#44)
1 parent 0a030f5 commit 154b18e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/Libero/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
3030
<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>
3131
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
32+
<rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>
3233
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing">
3334
<properties>
3435
<property name="linesCountBeforeFirstContent" value="0"/>

tests/cases/trait/name-trait

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---DESCRIPTION---
2+
Forbid Trait suffix
3+
---FILENAME---
4+
FooTrait.php
5+
---CONTENTS---
6+
<?php
7+
8+
declare(strict_types=1);
9+
10+
namespace Vendor;
11+
12+
trait FooTrait
13+
{
14+
}
15+
16+
---MESSAGES---
17+
7:1 SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix
18+
---

0 commit comments

Comments
 (0)