diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-26 10:05:10 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-26 10:05:23 -0400 |
commit | 4450ee60e1797456bc5bbc2ccf79717185da46f2 (patch) | |
tree | b8951298facb04a2cf7439c1a8fd9ddcbae062d6 /testsuite/pylintrc.conf | |
parent | aeddf10f2e129c70b182e91b727ccc8028e3fd45 (diff) | |
download | bcfg2-4450ee60e1797456bc5bbc2ccf79717185da46f2.tar.gz bcfg2-4450ee60e1797456bc5bbc2ccf79717185da46f2.tar.bz2 bcfg2-4450ee60e1797456bc5bbc2ccf79717185da46f2.zip |
documented which pylint messages are disabled and why
Diffstat (limited to 'testsuite/pylintrc.conf')
-rw-r--r-- | testsuite/pylintrc.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/pylintrc.conf b/testsuite/pylintrc.conf index 63cc8eed8..e44ad36e7 100644 --- a/testsuite/pylintrc.conf +++ b/testsuite/pylintrc.conf @@ -34,6 +34,38 @@ load-plugins= # multiple time (only on the command line, not in the configuration file where # it should appear only once). disable=F0401,W0142,W0511,W0603,W1201,R0201,R0801,R0901,R0902,R0903,R0904,R0921,R0922,C0302,I0011 +# Some of these are disabled because they warn about things we _want_: +# +# * W0142: Used * or ** magic +# * W1201: Specify string format arguments as logging function parameters +# * I0011: Locally disabling a pylint message +# * R0921: Abstract class not referenced +# * R0922: Abstract class is only referenced a small number of times +# +# We have several modules, e.g., Bcfg2.Server.Plugin.interfaces, that +# only declare abstract classes, which makes R0921 and R0922 useless. + +# Some of these are disabled because they just aren't that useful: +# +# * R0901: Too many ancestors +# * R0902: Too many instance attributes +# * R0903: Too few public methods +# * R0904: Too many public methods + +# Some of these are disabled because they cause lots of errors with no +# obvious solutions, but we should try to enable them at some point in +# the future: +# +# * W0511: FIXME or TODO +# * W0603: Using the global statement +# * R0201: Method could be a function +# * R0801: Similar lines in files +# * C0302: Too many lines in module + +# Some of these are disabled for various other reasons: + +# * F0401: Unable to import a module: Bcfg2 has loads and loads of +# optional dependencies [REPORTS] |