Disable warning message of pylint

2019-09-01 13:21发布

问题:

Checking code with pylint shows so many messages about variable names as follows:

Invalid name "getCurrentChannel" for type method (should match [a-z_][a-z0-9_]{2,30}$)

How can I disable these messages ?

回答1:

pylint --disable=C0103 filename

Running this command will not show messages for "Invalid variable name".