diff options
6 files changed, 10 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes index a3a7609a7..fc02336b2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/doc/data/messages/u/unexpected-line-ending-format/bad.py b/doc/data/messages/u/unexpected-line-ending-format/bad.py new file mode 100644 index 000000000..d8420e73c --- /dev/null +++ b/doc/data/messages/u/unexpected-line-ending-format/bad.py @@ -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]
diff --git a/doc/data/messages/u/unexpected-line-ending-format/details.rst b/doc/data/messages/u/unexpected-line-ending-format/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/u/unexpected-line-ending-format/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ ! diff --git a/doc/data/messages/u/unexpected-line-ending-format/good.py b/doc/data/messages/u/unexpected-line-ending-format/good.py index c40beb573..37f46cfc4 100644 --- a/doc/data/messages/u/unexpected-line-ending-format/good.py +++ b/doc/data/messages/u/unexpected-line-ending-format/good.py @@ -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 diff --git a/doc/data/messages/u/unexpected-line-ending-format/pylintrc b/doc/data/messages/u/unexpected-line-ending-format/pylintrc new file mode 100644 index 000000000..bfd3c1fa3 --- /dev/null +++ b/doc/data/messages/u/unexpected-line-ending-format/pylintrc @@ -0,0 +1,2 @@ +[FORMAT] +expected-line-ending-format=LF diff --git a/doc/data/messages/u/unexpected-line-ending-format/related.rst b/doc/data/messages/u/unexpected-line-ending-format/related.rst new file mode 100644 index 000000000..53035f521 --- /dev/null +++ b/doc/data/messages/u/unexpected-line-ending-format/related.rst @@ -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>`_ |