~ziad-sawalha/keystone/trunk

« back to all changes in this revision

Viewing changes to .pylintrc

  • Committer: Ziad Sawalha
  • Date: 2011-05-26 01:24:05 UTC
  • mfrom: (87.5.8)
  • Revision ID: git-v1:b0d12a558f590a501a42afd1283148961563920e
Merge pull request 53

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The format of this file isn't really documented; just use --generate-rcfile
 
2
 
 
3
[Messages Control]
 
4
# NOTE(justinsb): We might want to have a 2nd strict pylintrc in future
 
5
# C0111: Don't require docstrings on every method
 
6
# W0511: TODOs in code comments are fine.
 
7
# W0142: *args and **kwargs are fine.
 
8
# W0622: Redefining id is fine.
 
9
disable=C0111,W0511,W0142,W0622
 
10
 
 
11
[Basic]
 
12
# Variable names can be 1 to 31 characters long, with lowercase and underscores
 
13
variable-rgx=[a-z_][a-z0-9_]{0,30}$
 
14
 
 
15
# Argument names can be 2 to 31 characters long, with lowercase and underscores
 
16
argument-rgx=[a-z_][a-z0-9_]{1,30}$
 
17
 
 
18
# Method names should be at least 3 characters long
 
19
# and be lowecased with underscores
 
20
method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
 
21
 
 
22
# Module names matching nova-* are ok (files in bin/)
 
23
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$
 
24
 
 
25
# Don't require docstrings on tests.
 
26
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
 
27
 
 
28
[Design]
 
29
max-public-methods=100
 
30
min-public-methods=0
 
31
max-args=6
 
32
 
 
33
[Variables]
 
34
 
 
35
# List of additional names supposed to be defined in builtins. Remember that
 
36
# you should avoid to define new builtins when possible.
 
37
# _ is used by our localization
 
38
additional-builtins=_