[yum-git] Makefile test/yum-utils-pylintrc

Tim Lauridsen timlau at linux.duke.edu
Wed Sep 24 14:27:20 UTC 2008


 Makefile                |    1 +
 test/yum-utils-pylintrc |   10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

New commits:
commit d39c41093ec2bd5511061873e06b5688bbf0d36e
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Wed Sep 24 16:27:02 2008 +0200

    add security to pylint check

diff --git a/Makefile b/Makefile
index 5c379ba..e2e9d94 100644
--- a/Makefile
+++ b/Makefile
@@ -87,5 +87,6 @@ pylint:
                 debuginfo-install.py package-cleanup.py yum-groups-manager.py \
 		plugins/remove-with-leaves/remove-with-leaves.py \
 		plugins/upgrade-helper/upgrade-helper.py \
+		plugins/security/security.py \
 	
 FORCE:	
diff --git a/test/yum-utils-pylintrc b/test/yum-utils-pylintrc
index e053dd2..762f217 100644
--- a/test/yum-utils-pylintrc
+++ b/test/yum-utils-pylintrc
@@ -71,7 +71,9 @@ load-plugins=
 # C0321: *More than one statement on a single line*
 # W0401: *Wildcard import %s*
 # W0614: *Unused import %s from wildcard import*
-disable-msg=C0324,C0301,C0111,E1101,F0401,R0201,W0704,W0612,W0212,R0801,W0613,R0912,R0915,W0602,W0511,C0321,W0401,W0614
+# W0232: *Class has no __init__ method*
+# W0201: *Attribute %r defined outside __init__*
+disable-msg=C0324,C0301,C0111,E1101,F0401,R0201,W0704,W0612,W0212,R0801,W0613,R0912,R0915,W0602,W0511,C0321,W0401,W0614,W0232,W0201
 
 
 [REPORTS]
@@ -147,10 +149,10 @@ method-rgx=[a-z_][a-z0-9_A-Z]{2,30}$
 attr-rgx=[a-z_][a-z0-9_A-Z]{2,30}$
 
 # Regular expression which should only match correct argument names
-argument-rgx=[a-z_][a-z0-9_A-Z]{1,30}$
+argument-rgx=[a-z_][a-z0-9_A-Z]{0,30}$
 
 # Regular expression which should only match correct variable names
-variable-rgx=[a-z_][a-z0-9_A-Z]{1,30}$
+variable-rgx=[a-z_][a-z0-9_A-Z]{0,30}$
 
 # Regular expression which should only match correct list comprehension /
 # generator expression variable names
@@ -261,7 +263,7 @@ max-args=5
 max-locals=30
 
 # Maximum number of return / yield for function / method body
-max-returns=6
+max-returns=10
 
 # Maximum number of branch for function / method body
 max-branchs=25



More information about the Yum-cvs-commits mailing list