Skip to content

Files

Latest commit

 

History

History
41 lines (27 loc) · 614 Bytes

Lint-EmptyFile.md

File metadata and controls

41 lines (27 loc) · 614 Bytes

Pattern: Empty file

Issue: -

Description

This rule enforces that Ruby source files are not empty.

Examples

# bad
# Empty file

# good
# File containing non commented source lines

AllowComments: true (default)

# good
# File consisting only of comments

AllowComments: false

# bad
# File consisting only of comments

Configurable attributes

Name Default value Configurable values
AllowComments true Boolean

Further Reading