From: Chris Alfonso Date: Tue, 20 Mar 2012 11:16:06 +0000 (-0400) Subject: Directives to not use variable names that conflict with pdb X-Git-Tag: 2014.1~2181 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=948212722397a89f574ce52d79bff798f43d179b;p=openstack-build%2Fheat-build.git Directives to not use variable names that conflict with pdb --- diff --git a/HACKING.rst b/HACKING.rst index 42e36a31..a7e69111 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -13,7 +13,7 @@ General - Do not write "except:", use "except Exception:" at the very least - Include your name with TODOs as in "#TODO(termie)" - Do not name anything the same name as a built-in or reserved word - +- Do declare variable names that conflict with the debugger, such as the letter 'c' Imports ------- diff --git a/pylintrc b/pylintrc index 02480283..ad3ace9c 100644 --- a/pylintrc +++ b/pylintrc @@ -21,6 +21,8 @@ module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$ # Don't require docstrings on tests. no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$ +# Exclude variable names that conflict with debugger +bad-names=c [Design] max-public-methods=100 min-public-methods=0