Home > Development Tools > VSCode > How to turn off pylint error reporting in vscode

How to turn off pylint error reporting in vscode

hzc
Release: 2020-07-02 14:34:56
Original
5092 people have browsed it

How to turn off pylint error reporting in vscode

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.

How to turn off pylint error reporting in vscode

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template