diff options
author | Harutaka Kawamura <hkawamura0130@gmail.com> | 2022-06-05 20:17:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 13:17:54 +0200 |
commit | beb8b6f921057aeea0631d9440bb7acd7f8603bc (patch) | |
tree | 1c541b3e653b1289d1ad42c4907b8ea19ad3d53c /doc/data/messages/t | |
parent | 65331eae2608e12eba3d6171baf7ea72c8b20789 (diff) | |
download | pylint-git-beb8b6f921057aeea0631d9440bb7acd7f8603bc.tar.gz |
[doc] Add `trailing-newlines` example (#6839)
Use literalinclude for including python file in examples.
Diffstat (limited to 'doc/data/messages/t')
-rw-r--r-- | doc/data/messages/t/trailing-newlines/bad.py | 3 | ||||
-rw-r--r-- | doc/data/messages/t/trailing-newlines/details.rst | 1 | ||||
-rw-r--r-- | doc/data/messages/t/trailing-newlines/good.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/doc/data/messages/t/trailing-newlines/bad.py b/doc/data/messages/t/trailing-newlines/bad.py new file mode 100644 index 000000000..bf21afae0 --- /dev/null +++ b/doc/data/messages/t/trailing-newlines/bad.py @@ -0,0 +1,3 @@ +print("apple") +# The file ends with 2 lines that are empty # +3: [trailing-newlines] + diff --git a/doc/data/messages/t/trailing-newlines/details.rst b/doc/data/messages/t/trailing-newlines/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/t/trailing-newlines/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/t/trailing-newlines/good.py b/doc/data/messages/t/trailing-newlines/good.py index c40beb573..57725797f 100644 --- a/doc/data/messages/t/trailing-newlines/good.py +++ b/doc/data/messages/t/trailing-newlines/good.py @@ -1 +1 @@ -# This is a placeholder for correct code for this message. +print("apple") |