]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Directives to not use variable names that conflict with pdb
authorChris Alfonso <calfonso@redhat.com>
Tue, 20 Mar 2012 11:16:06 +0000 (07:16 -0400)
committerChris Alfonso <calfonso@redhat.com>
Tue, 20 Mar 2012 11:16:16 +0000 (07:16 -0400)
HACKING.rst
pylintrc

index 42e36a3139d69cb373b66078f3ceed4f588242ab..a7e691113ffd6d52123ae2cfa2293ee030efc945 100644 (file)
@@ -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
 -------
index 024802835199afdc33d095a3efcc3f9f3d0b8225..ad3ace9c43de61ccfad935371f194a6cfd3e4d48 100644 (file)
--- 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