diff --git a/doc/data/messages/b/bad-builtin/bad.py b/doc/data/messages/b/bad-builtin/bad.py new file mode 100644 index 0000000000..1c60815e59 --- /dev/null +++ b/doc/data/messages/b/bad-builtin/bad.py @@ -0,0 +1,2 @@ +numbers = list(map(lambda x: 2 * x, [1, 2, 3])) # [bad-builtin] +print(numbers) diff --git a/doc/data/messages/b/bad-builtin/good.py b/doc/data/messages/b/bad-builtin/good.py new file mode 100644 index 0000000000..c56dbfbe3c --- /dev/null +++ b/doc/data/messages/b/bad-builtin/good.py @@ -0,0 +1,2 @@ +numbers = [2 * x for x in [1, 2, 3]] +print(numbers)