diff --git a/doc/data/messages/b/bidirectional-unicode/bad.py b/doc/data/messages/b/bidirectional-unicode/bad.py new file mode 100644 index 0000000000..52f3070747 --- /dev/null +++ b/doc/data/messages/b/bidirectional-unicode/bad.py @@ -0,0 +1,2 @@ +# +1: [bidirectional-unicode] +example = "x‏" * 100 # "‏x" is assigned diff --git a/doc/data/messages/b/bidirectional-unicode/details.rst b/doc/data/messages/b/bidirectional-unicode/details.rst deleted file mode 100644 index ab82045295..0000000000 --- a/doc/data/messages/b/bidirectional-unicode/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/b/bidirectional-unicode/good.py b/doc/data/messages/b/bidirectional-unicode/good.py index c40beb573f..4a625ddb2f 100644 --- a/doc/data/messages/b/bidirectional-unicode/good.py +++ b/doc/data/messages/b/bidirectional-unicode/good.py @@ -1 +1 @@ -# This is a placeholder for correct code for this message. +example = "x[U+2194]" * 100 diff --git a/doc/data/messages/d/duplicate-string-formatting-argument/bad.py b/doc/data/messages/d/duplicate-string-formatting-argument/bad.py new file mode 100644 index 0000000000..23d8aae4d9 --- /dev/null +++ b/doc/data/messages/d/duplicate-string-formatting-argument/bad.py @@ -0,0 +1,26 @@ +# pylint: disable=missing-docstring, consider-using-f-string + +SEE = "see 👀" +SEA = "sea 🌊" + +# +1: [duplicate-string-formatting-argument,duplicate-string-formatting-argument] +CONST = """ +A sailor went to {}, {}, {} +To {} what he could {}, {}, {} +But all that he could {}, {}, {} +Was the bottom of the deep blue {}, {}, {}! +""".format( + SEA, + SEA, + SEA, + SEE, + SEE, + SEE, + SEE, + SEE, + SEE, + SEE, + SEA, + SEA, + SEA, +) diff --git a/doc/data/messages/d/duplicate-string-formatting-argument/details.rst b/doc/data/messages/d/duplicate-string-formatting-argument/details.rst deleted file mode 100644 index ab82045295..0000000000 --- a/doc/data/messages/d/duplicate-string-formatting-argument/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/d/duplicate-string-formatting-argument/good.py b/doc/data/messages/d/duplicate-string-formatting-argument/good.py index c40beb573f..be4b783286 100644 --- a/doc/data/messages/d/duplicate-string-formatting-argument/good.py +++ b/doc/data/messages/d/duplicate-string-formatting-argument/good.py @@ -1 +1,14 @@ -# This is a placeholder for correct code for this message. +# pylint: disable=missing-docstring, consider-using-f-string + +SEE = "see 👀" +SEA = "sea 🌊" + +# +1: [duplicate-string-formatting-argument,duplicate-string-formatting-argument] +CONST = """ +A sailor went to {sea}, {sea}, {sea} +To {see} what he could {see}, {see}, {see} +But all that he could {see}, {see}, {see} +Was the bottom of the deep blue {sea}, {sea}, {sea}! +""".format( + sea=SEA, see=SEE +)