This commit is contained in:
Jeremy Fincher 2003-10-05 13:03:24 +00:00
parent ef517515f7
commit 2a727d2f28
1 changed files with 52 additions and 53 deletions

View File

@ -1,7 +1,6 @@
# lint Python modules using external checkers.
#
[MASTER]
# add <file> (may be a directory) to the black list. It should be a base name, not a path. You may set this option multiple times.
# add <file> (may be a directory) to the black list.
# It should be a base name, not a path. You may set this option multiple times.
ignore=CVS
# make statistics on collected data.
@ -10,9 +9,6 @@ statistics=yes
# pickle collected data for later comparisons.
persistent=yes
# Python expression which should return a note lesser than 10 (10 is the highest note).You have access to the variables errors, warnings, statements which respectivly contains the number of errors / warnings messages and the total number of statements analyzed.
evaluation='10.0 - ((float(2 * errors + warnings) / statements) * 10)'
# Add a comment according to your evaluation note.
comment=no
@ -23,7 +19,7 @@ comment=no
# * relative / wildcard imports
# * cyclic imports
# * uses of depreceted modules
#
[IMPORTS]
# enable/disable this checker
enable-imports=yes
@ -48,8 +44,8 @@ deprecated-modules=regsub,TERMIOS
# checks for :
# * doc strings
# * modules / classes / functions / methods / arguments / variables name
# * number of arguments, local variables, branchs, returns and statements in
# functions, methods
# * number of arguments, local variables, branchs, returns and statements
# in functions, methods
# * required module's attributes
# * dangerous default values as arguments
# * redefinition of function / method / class
@ -86,31 +82,34 @@ unreachable=yes
# Check for function / method / class redefinition
redefinition=yes
# Regular expression which should only match functions which do not require a docstring
# Regular expression which should only match functions which
# do not require a docstring
no-docstring-rgx=_.*
# Minimal length for module / class / function / method / argument / variable names
min-name-length=0
# Minimal length for module/class/function/method/argument/variable names
min-name-length=3
# Regular expression which should only match correct module name
module-rgx=[a-z_]+
module-rgx=([a-z_]+|[A-Z][a-zA-Z0-9]+)
# Regular expression which should only match correct class name
class-rgx=[A-Z][a-zA-Z]+
class-rgx=([A-Z][a-zA-Z]+|[a-z]+)
# Regular expression which should only match correct function name
function-rgx=[a-zA-Z_]+
# Regular expression which should only match correct argument name
argument-rgx=[a-z_]+
argument-rgx=[a-z_][A-Za-z0-9]*
# Regular expression which should only match correct variable name
variable-rgx=[a-z_]+
variable-rgx=[a-z_][A-Za-z0-9]*
# Good variable names which are lesser than min-name-length or wouldn't match the variable-rgx, separated by a comma
good-variable-names=i,j,k,ex
# Good variable names which are lesser than min-name-length
# or wouldn't match the variable-rgx, separated by a comma
good-variable-names=i,j,k,db,s,t,s1,s2,t1,t2,m,e,cb,r,h,c,fd,_,u,tb,f,no,b,bg,fg,id
# Bad variable names which are greater than min-name-length or would match the variable-rgx, separated by a comma
# Bad variable names which are greater than min-name-length or would
# match the variable-rgx, separated by a comma
bad-variable-names=foo,bar,baz,toto,tutu,tata
@ -120,7 +119,7 @@ bad-variable-names=foo,bar,baz,toto,tutu,tata
# * undefined variables
# * redefinition of variable from builtins or from an outer scope
# * use of variable before assigment
#
[VARIABLES]
# enable/disable this checker
enable-variables=yes
@ -134,7 +133,7 @@ enable-variables=yes
# * attributes not defined in the __init__ method
# * supported interfaces implementation
# * unreachable code
#
[CLASSES]
# enable/disable this checker
enable-classes=yes
@ -159,7 +158,7 @@ interfaces=yes
# * total number of docstring lines
# * total number of comments lines
# * total number of empty lines
#
[METRICS]
# enable/disable this checker
enable-metrics=yes
@ -167,9 +166,9 @@ enable-metrics=yes
# checks for:
# * source code with non ascii characters but np encoding declaration (PEP 263)
# * source code with non ascii characters but no encoding declaration
# * warning notes in the code like FIXME, XXX
#
[MISCELLANEOUS]
# enable/disable this checker
enable-miscellaneous=yes
@ -177,7 +176,7 @@ enable-miscellaneous=yes
# check or not for source code encoding
encoding=yes
# list of notes to take in consideration, separated by a comma. Default to FIXME,XXX
# list of notes to take in consideration, separated by a comma.
notes=FIXME,XXX,TODO
@ -186,13 +185,13 @@ notes=FIXME,XXX,TODO
# * unauthorized constructions
# * strict indentation
# * lines'length
#
[FORMAT]
# enable/disable this checker
enable-format=yes
# Maximum number of characters on a single line.
max-line-length=78
max-line-length=79
# Maximum number of lines in a module
max-module-lines=1000