Skip to content

Commit

Permalink
doc unexpected-line-ending-format
Browse files Browse the repository at this point in the history
  • Loading branch information
hofrob committed Feb 11, 2023
1 parent 32e1545 commit fed5ba4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tests/**/functional/** -text
tests/input/** -text
tests/**/data/** -text
tests/regrtest_data/** -text
doc/data/messages/u/unexpected-line-ending-format/bad.py text eol=crlf
2 changes: 2 additions & 0 deletions doc/data/messages/u/unexpected-line-ending-format/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Sometimes I drink soda.") # CRLF # [unexpected-line-ending-format]
print("Sometimes I drink sulfuric acid.") # CRLF # [unexpected-line-ending-format]

This file was deleted.

3 changes: 2 additions & 1 deletion doc/data/messages/u/unexpected-line-ending-format/good.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# This is a placeholder for correct code for this message.
print("I'm drinking tea!") # LF
print("I'm drinking water!") # LF
2 changes: 2 additions & 0 deletions doc/data/messages/u/unexpected-line-ending-format/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[FORMAT]
expected-line-ending-format=LF
3 changes: 3 additions & 0 deletions doc/data/messages/u/unexpected-line-ending-format/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `History of CRLF and LF <https://stackoverflow.com/a/6521730/2519059>`_
- `Dealing with line endings in Git <https://stackoverflow.com/a/10855862/2519059>`_
- `A Collection of Useful .gitattributes Templates <https://github.com/alexkaratarakis/gitattributes>`_

0 comments on commit fed5ba4

Please sign in to comment.