summaryrefslogtreecommitdiff
path: root/doc/data
diff options
context:
space:
mode:
authorRobert Hofer <1058012+hofrob@users.noreply.github.com>2023-02-12 21:35:57 +0100
committerGitHub <noreply@github.com>2023-02-12 21:35:57 +0100
commitd1b55f4a7cfc530263dfaac922c24a6849d2bcd1 (patch)
treeda5cfdd33a78997e74352d67b25d61815f72fa8b /doc/data
parent81ed650d4655f65231d9caa0056dc92b0fcc257d (diff)
downloadpylint-git-d1b55f4a7cfc530263dfaac922c24a6849d2bcd1.tar.gz
Doc for 'unexpected-line-ending-format' (#8255)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data')
-rw-r--r--doc/data/messages/u/unexpected-line-ending-format/bad.py2
-rw-r--r--doc/data/messages/u/unexpected-line-ending-format/details.rst1
-rw-r--r--doc/data/messages/u/unexpected-line-ending-format/good.py3
-rw-r--r--doc/data/messages/u/unexpected-line-ending-format/pylintrc2
-rw-r--r--doc/data/messages/u/unexpected-line-ending-format/related.rst3
5 files changed, 9 insertions, 2 deletions
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>`_