Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 640 Bytes

File metadata and controls

31 lines (21 loc) · 640 Bytes

Pattern: Closing bracket does not match indentation of opening bracket's line

Issue: -

Description

Closing brackets should match the same indentation level of the line that their opening bracket started on.

Example of incorrect code:

In this example the last line should be indented at the same level as the first line.

result = function_that_takes_arguments(
    'a', 'b', 'c',
    'd', 'e', 'f',
    )

Example of correct code:

result = function_that_takes_arguments(
    'a', 'b', 'c',
    'd', 'e', 'f',
)

Further Reading