Skip to content

Files

Latest commit

 

History

History
26 lines (15 loc) · 320 Bytes

trailing-newlines.md

File metadata and controls

26 lines (15 loc) · 320 Bytes

Pattern: Trailing newline

Issue: -

Description

Used when there are trailing blank lines in a file.

Example of incorrect code:

"""This file has trailing newlines."""
print "test"
# +1: [trailing-newlines]
 
 

Example of correct code:

print "test"
# +1: [trailing-newlines]