The way to turn off pylint error reporting in vscode is:
fpylint is a plug-in that comes with python in VScode, which can help standardize and make the code beautiful.
But there are some errors you don’t want to see, and you can selectively ignore them.
For example, in re.compile(), you can add the parameter re.S to make . match any character. However, pylint will always report an error that this method does not exist, causing it to fail to run. This problem does not occur in Pycharm.
If you want to customize ignoring errors, do the following:
1. Search for python.linting.pylintArgs
in the setting and json files. 2. Modify as follows.
3. Add the string --disable=error code to python.linting.pylintArgs. If there are multiple error codes, separate them with parentheses. I've only ignored E1101 here. You can change it to E1101, E1102
Note: I read a lot of information on the Internet here, and many people said to add --disable-msg=error code. But this method does not apply to me, maybe I downloaded the latest version. Just use the method mentioned above and test it yourself.
Recommended tutorial: "vscode introductory tutorial"
The above is the detailed content of How to turn off pylint error reporting in vscode. For more information, please follow other related articles on the PHP Chinese website!