/googlecl-pylint.rc

http://googlecl.googlecode.com/ · Windows Resource-Definition Script · 236 lines · 156 code · 80 blank · 0 comment · 0 complexity · 1f0f39b766a16c7a23c63f1452d81085 MD5 · raw file

  1. [MASTER]
  2. # Specify a configuration file.
  3. #rcfile=
  4. # Python code to execute, usually for sys.path manipulation such as
  5. # pygtk.require().
  6. #init-hook=
  7. # Profiled execution.
  8. profile=no
  9. # Add <file or directory> to the black list. It should be a base name, not a
  10. # path. You may set this option multiple times.
  11. ignore=CVS
  12. # Pickle collected data for later comparisons.
  13. persistent=yes
  14. # List of plugins (as comma separated values of python modules names) to load,
  15. # usually to register additional checkers.
  16. load-plugins=
  17. [MESSAGES CONTROL]
  18. # Enable the message, report, category or checker with the given id(s). You can
  19. # either give multiple identifier separated by comma (,) or put this option
  20. # multiple time.
  21. #enable=
  22. # Disable the message, report, category or checker with the given id(s). You
  23. # can either give multiple identifier separated by comma (,) or put this option
  24. # multiple time.
  25. #disable=
  26. [REPORTS]
  27. # Set the output format. Available formats are text, parseable, colorized, msvs
  28. # (visual studio) and html
  29. output-format=text
  30. # Include message's id in output
  31. include-ids=no
  32. # Put messages in a separate file for each module / package specified on the
  33. # command line instead of printing them on stdout. Reports (if any) will be
  34. # written in a file name "pylint_global.[txt|html]".
  35. files-output=no
  36. # Tells whether to display a full report or only the messages
  37. reports=yes
  38. # Python expression which should return a note less than 10 (10 is the highest
  39. # note). You have access to the variables errors warning, statement which
  40. # respectively contain the number of errors / warnings messages and the total
  41. # number of statements analyzed. This is used by the global evaluation report
  42. # (R0004).
  43. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  44. # Add a comment according to your evaluation note. This is used by the global
  45. # evaluation report (R0004).
  46. comment=no
  47. [VARIABLES]
  48. # Tells whether we should check for unused import in __init__ files.
  49. init-import=no
  50. # A regular expression matching names used for dummy variables (i.e. not used).
  51. dummy-variables-rgx=_|dummy
  52. # List of additional names supposed to be defined in builtins. Remember that
  53. # you should avoid to define new builtins when possible.
  54. additional-builtins=
  55. [BASIC]
  56. # Required attributes for module, separated by a comma
  57. required-attributes=
  58. # List of builtins function names that should not be used, separated by a comma
  59. bad-functions=map,filter,apply,input
  60. # Regular expression which should only match correct module names
  61. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  62. # Regular expression which should only match correct module level names
  63. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  64. # Regular expression which should only match correct class names
  65. class-rgx=[A-Z_][a-zA-Z0-9]+$
  66. # Regular expression which should only match correct function names
  67. function-rgx=[a-z_][a-z0-9_]{2,30}$
  68. # Regular expression which should only match correct method names
  69. method-rgx=[a-z_][a-z0-9_]{2,30}$
  70. # Regular expression which should only match correct instance attribute names
  71. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  72. # Regular expression which should only match correct argument names
  73. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  74. # Regular expression which should only match correct variable names
  75. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  76. # Regular expression which should only match correct list comprehension /
  77. # generator expression variable names
  78. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  79. # Good variable names which should always be accepted, separated by a comma
  80. good-names=i,j,k,ex,Run,_
  81. # Bad variable names which should always be refused, separated by a comma
  82. bad-names=foo,bar,baz,toto,tutu,tata
  83. # Regular expression which should only match functions or classes name which do
  84. # not require a docstring
  85. no-docstring-rgx=__.*__
  86. [MISCELLANEOUS]
  87. # List of note tags to take in consideration, separated by a comma.
  88. notes=FIXME,XXX,TODO
  89. [FORMAT]
  90. # Maximum number of characters on a single line.
  91. max-line-length=80
  92. # Maximum number of lines in a module
  93. max-module-lines=1000
  94. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  95. # tab).
  96. indent-string=' '
  97. [SIMILARITIES]
  98. # Minimum lines number of a similarity.
  99. min-similarity-lines=4
  100. # Ignore comments when computing similarities.
  101. ignore-comments=yes
  102. # Ignore docstrings when computing similarities.
  103. ignore-docstrings=yes
  104. [TYPECHECK]
  105. # Tells whether missing members accessed in mixin class should be ignored. A
  106. # mixin class is detected if its name ends with "mixin" (case insensitive).
  107. ignore-mixin-members=yes
  108. # List of classes names for which member attributes should not be checked
  109. # (useful for classes with attributes dynamically set).
  110. ignored-classes=SQLObject
  111. # When zope mode is activated, add a predefined set of Zope acquired attributes
  112. # to generated-members.
  113. zope=no
  114. # List of members which are set dynamically and missed by pylint inference
  115. # system, and so shouldn't trigger E0201 when accessed.
  116. generated-members=REQUEST,acl_users,aq_parent
  117. [DESIGN]
  118. # Maximum number of arguments for function / method
  119. max-args=5
  120. # Argument names that match this expression will be ignored. Default to name
  121. # with leading underscore
  122. ignored-argument-names=_.*
  123. # Maximum number of locals for function / method body
  124. max-locals=15
  125. # Maximum number of return / yield for function / method body
  126. max-returns=6
  127. # Maximum number of branch for function / method body
  128. max-branchs=12
  129. # Maximum number of statements in function / method body
  130. max-statements=50
  131. # Maximum number of parents for a class (see R0901).
  132. max-parents=7
  133. # Maximum number of attributes for a class (see R0902).
  134. max-attributes=7
  135. # Minimum number of public methods for a class (see R0903).
  136. min-public-methods=2
  137. # Maximum number of public methods for a class (see R0904).
  138. max-public-methods=20
  139. [IMPORTS]
  140. # Deprecated modules which should not be used, separated by a comma
  141. deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
  142. # Create a graph of every (i.e. internal and external) dependencies in the
  143. # given file (report RP0402 must not be disabled)
  144. import-graph=
  145. # Create a graph of external dependencies in the given file (report RP0402 must
  146. # not be disabled)
  147. ext-import-graph=
  148. # Create a graph of internal dependencies in the given file (report RP0402 must
  149. # not be disabled)
  150. int-import-graph=
  151. [CLASSES]
  152. # List of interface methods to ignore, separated by a comma. This is used for
  153. # instance to not check methods defines in Zope's Interface base class.
  154. ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
  155. # List of method names used to declare (i.e. assign) instance attributes.
  156. defining-attr-methods=__init__,__new__,setUp