-1

I wrote the code below on VSCode:

"""Say Hello"""

print("Hello"    )

Then, Flake8 extension can show E202 error for print("Hello" ) as shown below:

enter image description here

whitespace before ')' Flake8(E202)

But, Pylint extension cannot show E202 error for print("Hello" ) as shown below:

enter image description here

So, how can I enable Pylint extension to show E202 error on VSCode?

rioV8
  • 24,506
  • 3
  • 32
  • 49
Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129

2 Answers2

1

The bad-whitespace error has been removed from pylint. check this issue

all messages are here

Saeed Ramezani
  • 462
  • 6
  • 20
  • To second that, the reason it was removed is because the message is hard to maintain and it's auto-fixable by applying [``black``](https://pypi.org/project/black/) so there's not much value in checking it – Pierre.Sassoulas Jun 11 '23 at 14:57
-1

pylint does not have a rule to catch that type of issues.

If I use the CLI commands, I can see that pylint does not show this as a problem:

$ cat /tmp/a.py
print("Hello"  )

$ pylint /tmp/a.py
************* Module a
/tmp/a.py:1:0: C0114: Missing module docstring (missing-module-docstring)

------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

$ flake8 /tmp/a.py
/tmp/a.py:2:15: E202 whitespace before ')'

So, the pylint extension does not show it.

AbdealiLoKo
  • 3,261
  • 2
  • 20
  • 36