Skip to content

Files

Latest commit

 

History

History
22 lines (13 loc) · 480 Bytes

camel_case_classes.md

File metadata and controls

22 lines (13 loc) · 480 Bytes

Pattern: Invalid class name

Issue: -

Description

This rule mandates that all class names are UpperCamelCased. Camel casing class names is a generally accepted way of distinguishing constructor functions - which require the new prefix to behave properly - from plain old functions.

Examples

# Good!
class BoaConstrictor


# Bad!
class boaConstrictor

Further Reading