Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 480 Bytes

File metadata and controls

27 lines (18 loc) · 480 Bytes

Pattern: Missing whitespace for block comment

Issue: -

Description

Block comments should have one space before the pound sign (#) and the comment itself.

Example of incorrect code:

#This comment needs a space
def print_name(self):
    print(self.name)

Example of correct code:

# Comment is correct now
def print_name(self):
    print(self.name)

Further Reading