Skip to content
Snippets Groups Projects
pylintrc 3.27 KiB
Newer Older
  • Learn to ignore specific revisions
  • # ***************************
    # ** DO NOT EDIT THIS FILE **
    # ***************************
    #
    # It is generated by:
    #   $ edx_lint write pylintrc
    #
    #
    #
    #
    #
    #
    #
    #
    # STAY AWAY!
    #
    #
    #
    #
    #
    # SERIOUSLY.
    #
    # ------------------------------
    [MASTER]
    profile = no
    ignore = 
    persistent = yes
    load-plugins = edx_lint.pylint,pylint_django
    
    [MESSAGES CONTROL]
    disable = 
    	locally-disabled,
    	locally-enabled,
    	too-few-public-methods,
    	bad-builtin,
    	star-args,
    	abstract-class-not-used,
    	abstract-class-little-used,
    	no-init,
    	fixme,
    	too-many-lines,
    	no-self-use,
    	too-many-ancestors,
    	too-many-instance-attributes,
    	too-few-public-methods,
    	too-many-public-methods,
    	too-many-return-statements,
    	too-many-branches,
    	too-many-arguments,
    	too-many-locals,
    	unused-wildcard-import,
    	duplicate-code
    
    [REPORTS]
    output-format = text
    files-output = no
    reports = no
    evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
    comment = no
    
    [BASIC]
    required-attributes = 
    bad-functions = map,filter,apply,input
    module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
    const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$
    class-rgx = [A-Z_][a-zA-Z0-9]+$
    function-rgx = ([a-z_][a-z0-9_]{2,30}|test_[a-z0-9_]+)$
    method-rgx = ([a-z_][a-z0-9_]{2,40}|setUp|set[Uu]pClass|tearDown|tear[Dd]ownClass|assert[A-Z]\w*|maxDiff|test_[a-z0-9_]+)$
    attr-rgx = [a-z_][a-z0-9_]{2,30}$
    argument-rgx = [a-z_][a-z0-9_]{2,30}$
    variable-rgx = [a-z_][a-z0-9_]{2,30}$
    class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
    inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
    good-names = f,i,j,k,db,ex,Run,_,__
    bad-names = foo,bar,baz,toto,tutu,tata
    no-docstring-rgx = __.*__$|test_.+|setUp$|setUpClass$|tearDown$|tearDownClass$|Meta$
    docstring-min-length = -1
    
    [FORMAT]
    max-line-length = 120
    ignore-long-lines = ^\s*(# )?<?https?://\S+>?$
    single-line-if-stmt = no
    no-space-check = trailing-comma,dict-separator
    max-module-lines = 1000
    indent-string = '    '
    
    [MISCELLANEOUS]
    notes = FIXME,XXX,TODO
    
    [SIMILARITIES]
    min-similarity-lines = 4
    ignore-comments = yes
    ignore-docstrings = yes
    ignore-imports = no
    
    [TYPECHECK]
    ignore-mixin-members = yes
    ignored-classes = SQLObject
    zope = no
    unsafe-load-any-extension = yes
    generated-members = 
    	REQUEST,
    	acl_users,
    	aq_parent,
    	objects,
    	DoesNotExist,
    	can_read,
    	can_write,
    	get_url,
    	size,
    	content,
    	status_code,
    	create,
    	build,
    	fields,
    	tag,
    	org,
    	course,
    	category,
    	name,
    	revision,
    	_meta,
    
    [VARIABLES]
    init-import = no
    dummy-variables-rgx = _|dummy|unused|.*_unused
    additional-builtins = 
    
    [CLASSES]
    ignore-iface-methods = isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
    defining-attr-methods = __init__,__new__,setUp
    valid-classmethod-first-arg = cls
    valid-metaclass-classmethod-first-arg = mcs
    
    [DESIGN]
    max-args = 5
    ignored-argument-names = _.*
    max-locals = 15
    max-returns = 6
    max-branches = 12
    max-statements = 50
    max-parents = 7
    max-attributes = 7
    min-public-methods = 2
    max-public-methods = 20
    
    [IMPORTS]
    deprecated-modules = regsub,TERMIOS,Bastion,rexec
    import-graph = 
    ext-import-graph = 
    int-import-graph = 
    
    [EXCEPTIONS]
    overgeneral-exceptions = Exception
    
    # d8bfe98cfd638a8d10288d842a7d3d4532a279c3