Package.swift
File should terminate with exactly one newline character ('\n') Open
Open
- Read upRead up
- Exclude checks
terminating-newline
Verify that source files terminate with exactly one \n
character. This ensures that the last line of the file is valid according to the POSIX standard. Also see No Newline at End of File for more information.
Swift source files should terminate with exactly 1 \n
character, not 0 nor more than 1.
Preferred
let myConstant = 42¬
<eof></eof>
Not Preferred
let myConstant = 42<eof></eof>
let myConstant = 42¬
¬
¬
<eof></eof>