From 5fcaeaf565c78f142a2634ec20e69d946fa99bc1 Mon Sep 17 00:00:00 2001 From: maddychan Date: Tue, 28 Jun 2016 17:18:40 -0700 Subject: [PATCH] Updated Regex Expressions updated regex expressions to not allow capital letters or leading double underscores where necessary --- pylintrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pylintrc b/pylintrc index d30e7c773..a1f18baf8 100644 --- a/pylintrc +++ b/pylintrc @@ -106,26 +106,26 @@ required-attributes= bad-functions=map,filter,apply,input # Regular expression which should only match correct module names -module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ +module-rgx=[a-z_][a-z0-9][a-z0-9_]{1,30}$ # Regular expression which should only match correct module level names const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ # Regular expression which should only match correct class names -class-rgx=[A-Z_][a-zA-Z0-9]+$ +class-rgx=[A-Z_][a-zA-Z0-9][a-zA-Z0-9]{0,30}$ # Regular expression which should only match correct function names -function-rgx=[a-z_][a-z0-9_]{2,30}$ +function-rgx=[a-z_][a-z0-9][a-z0-9_]{0,30}$ # Regular expression which should only match correct method names # method-rgx=[a-z_][a-z0-9_]{2,30}$ -method-rgx=[A-Z_][a-zA-Z0-9]{2,30}$ +method-rgx=[a-z_][a-z0-9_]{2,30}$ # Regular expression which should only match correct instance attribute names -attr-rgx=[a-z_][a-z0-9_]{2,30}$ +attr-rgx=[a-z_][a-z0-9][a-z0-9_]{0,30}$ # Regular expression which should only match correct argument names -argument-rgx=[a-z_][a-z0-9_]{2,30}$ +argument-rgx=[a-z_][a-z0-9][a-z0-9_]{0,30}$ # Regular expression which should only match correct variable names variable-rgx=[a-z_][a-z0-9_]{2,30}$