diff options
author | hippo91 <guillaume.peillex@gmail.com> | 2018-06-03 06:57:24 +0200 |
---|---|---|
committer | Ashley Whetter <AWhetter@users.noreply.github.com> | 2018-06-02 21:57:24 -0700 |
commit | a7da6e534805e14094e302e5b0b19b7d16972a15 (patch) | |
tree | 05239e7e51b2798666df6e1b261100b93c728d94 /pylint/test/functional/line_too_long_end_of_module.py | |
parent | db63b4928c4210e24b11c87624376fc55b01e09c (diff) | |
download | pylint-git-a7da6e534805e14094e302e5b0b19b7d16972a15.tar.gz |
Fixed incorrect line number for line-too-long on comment at end of module (#2164)
* Add of get_effective_max_line_number in FileState class + calling it in is_message_enabled
* Add of unittest that should not raise any line-too-long message even for a commended line at the end of module
* Add of ChangeLog and whatsnew entries
Diffstat (limited to 'pylint/test/functional/line_too_long_end_of_module.py')
-rw-r--r-- | pylint/test/functional/line_too_long_end_of_module.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pylint/test/functional/line_too_long_end_of_module.py b/pylint/test/functional/line_too_long_end_of_module.py new file mode 100644 index 000000000..21cb75655 --- /dev/null +++ b/pylint/test/functional/line_too_long_end_of_module.py @@ -0,0 +1,7 @@ +#pylint: disable=missing-docstring, line-too-long
+
+# Hey this is a very long commented line just to trigger pylint's line-too-long message. It is just above a dummy function with a very long code line.
+def dummy_function():
+ print("What a beautiful dummy function with such a very long line inside that it should trigger pylint's line-too-long message ")
+
+# Hey this is a very long commented line at the end of the module. It is just here to trigger pylint's line-too-long message.
|