Skip to content
On this page

OneTraitPerFile

Checks that only one trait is declared per file.

Scope

Generic.Files.OneTraitPerFile

Description

There should only be one trait defined in a file.

Usage

xml
<rule ref="Generic.Files.OneTraitPerFile"></rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.