Skip to content

Files

Latest commit

 

History

History
26 lines (16 loc) · 486 Bytes

File metadata and controls

26 lines (16 loc) · 486 Bytes

Pattern: Missing whitespace for inline comment

Issue: -

Description

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

Example of incorrect code:

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

Example of correct code:

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

Further Reading