Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 485 Bytes

Style-LineEndConcatenation.md

File metadata and controls

26 lines (17 loc) · 485 Bytes

Pattern: Malformed line end concatenation

Issue: -

Description

This rule checks for string literal concatenation at the end of a line. Use \\ instead of + or << to concatenate strings.

Examples

# bad
some_str = 'one' +
           'two'

some_str = 'one' <<
           'two'

# good
some_str = 'one' \
           'two'

Further Reading