Skip to content

Files

Latest commit

 

History

History
20 lines (13 loc) · 573 Bytes

RecordComponentNumber.md

File metadata and controls

20 lines (13 loc) · 573 Bytes

Pattern: Malformed record component name

Issue: -

Description

Checks that record component names conform to a specified pattern.

Examples

record MyRecord1(String value, int other) {} // OK
record MyRecord2(String... strings) {} // OK
record MyRecord3(double myNumber) {} // violation, the record component name
                             // should match the regular expression "^[a-z]+$"

Further Reading