Skip to content
On this page

OneClassPerFile

Checks that only one class is declared per file.

Scope

Generic.Files.OneClassPerFile

Description

There should only be one class defined in a file.

Usage

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

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.