From 9afac3d8f03d364afd4e7832176a3def29ebc395 Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Sun, 10 Apr 2022 21:30:16 +0200 Subject: [PATCH] Added missing-function-docstring message example (#6248) --- doc/data/messages/m/missing-function-docstring/bad.py | 5 +++++ doc/data/messages/m/missing-function-docstring/good.py | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 doc/data/messages/m/missing-function-docstring/bad.py create mode 100644 doc/data/messages/m/missing-function-docstring/good.py diff --git a/doc/data/messages/m/missing-function-docstring/bad.py b/doc/data/messages/m/missing-function-docstring/bad.py new file mode 100644 index 0000000000..9c54dfcd5e --- /dev/null +++ b/doc/data/messages/m/missing-function-docstring/bad.py @@ -0,0 +1,5 @@ +import sys + + +def print_python_version(): # [missing-function-docstring] + print(sys.version) diff --git a/doc/data/messages/m/missing-function-docstring/good.py b/doc/data/messages/m/missing-function-docstring/good.py new file mode 100644 index 0000000000..1942167bf4 --- /dev/null +++ b/doc/data/messages/m/missing-function-docstring/good.py @@ -0,0 +1,6 @@ +import sys + + +def print_python_version(): + """Function printing python version.""" + print(sys.version)