blob: 9866398ee1283e3bb292f24c709c3a640ec3a781 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
"""Regression test for trailing-whitespace (C0303)."""
# pylint: disable=mixed-line-endings,pointless-string-statement
# +1: [trailing-whitespace]
print('some trailing whitespace')
# +1: [trailing-whitespace]
print('trailing whitespace does not count towards the line length limit')
print('windows line ends are ok')
# +1: [trailing-whitespace]
print('but trailing whitespace on win is not')
# Regression test for https://github.com/pylint-dev/pylint/issues/6936
# +2: [trailing-whitespace]
""" This module has the Board class.
"""
# +3: [trailing-whitespace]
""" This module has the Board class.
It's a very nice Board.
"""
# Regression test for https://github.com/pylint-dev/pylint/issues/3822
def example(*args):
"""Example function."""
print(*args)
example(
"bob", """
foobar
more text
""",
)
example(
"bob",
"""
foobar2
more text
""",
)
|