summaryrefslogtreecommitdiff
path: root/doc/data/messages/i/implicit-str-concat/details.rst
blob: f09d481109e6a0422663c4d05cadee7766a0ae1a (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
By default, detection of implicit string concatenation of line jumps is disabled.
Hence the following code will not trigger this rule:

.. code-block:: python

    SEQ = ('a', 'b'
                'c')

In order to detect this case, you must enable `check-str-concat-over-line-jumps`:

.. code-block:: toml

    [STRING_CONSTANT]
    check-str-concat-over-line-jumps = yes

However, the drawback of this setting is that it will trigger false positive
for string parameters passed on multiple lines in function calls:

.. code-block:: python

    warnings.warn(
        "rotate() is deprecated and will be removed in a future release. "
        "Use the rotation() context manager instead.",
        DeprecationWarning,
        stacklevel=3,
    )