unexpected-line-ending-format / C0328#
Message emitted:
Unexpected line ending format. There is '%s' while it should be '%s'.
Description:
Used when there is different newline than expected.
Problematic code:
print("Sometimes I drink soda.") # CRLF # [unexpected-line-ending-format]
print("Sometimes I drink sulfuric acid.") # CRLF # [unexpected-line-ending-format]
Correct code:
print("I'm drinking tea!") # LF
print("I'm drinking water!") # LF
Configuration file:
[FORMAT]
expected-line-ending-format=LF
Related links:
Created by the format checker.