Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Libero/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
<rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing">
<properties>
<property name="linesCountBeforeFirstContent" value="0"/>
Expand Down
18 changes: 18 additions & 0 deletions tests/cases/trait/name-trait
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---DESCRIPTION---
Forbid Trait suffix
---FILENAME---
FooTrait.php
---CONTENTS---
<?php

declare(strict_types=1);

namespace Vendor;

trait FooTrait
{
}

---MESSAGES---
7:1 SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix
---