Skip to content
On this page

OneObjectStructurePerFile

Checks that only one object structure is declared per file.

Scope

Generic.Files.OneObjectStructurePerFile

Description

There should only be one class or interface or trait defined in a file.

Usage

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

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.