X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/80f3f4156a57b4032e7c7b8ab13e9b9e75ff5894..32708d0a16c33d758b31aed191a9596727073b87:/pylintrc diff --git a/pylintrc b/pylintrc index 25d3fda..a643211 100644 --- a/pylintrc +++ b/pylintrc @@ -25,7 +25,7 @@ required-attributes = no-docstring-rgx = .* module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ # added lower-case names -const-rgx = ((_{0,2}[A-Z][A-Z0-9_]*)|(__.*__)|(_?[a-z_][a-z0-9_]*))$ +const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$ class-rgx = _?[A-Z][a-zA-Z0-9]+$ # added lower-case names function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$ @@ -37,7 +37,7 @@ variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$ inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$ good-names = i,j,k,_ bad-names = foo,bar,baz,toto,tutu,tata -bad-functions = +bad-functions = xrange [TYPECHECK] ignore-mixin-members = yes @@ -83,3 +83,30 @@ notes = FIXME,XXX,TODO min-similarity-lines = 4 ignore-comments = yes ignore-docstrings = yes + +[MESSAGES CONTROL] + +# Enable only checker(s) with the given id(s). This option conflicts with the +# disable-checker option +#enable-checker= + +# Enable all checker(s) except those with the given id(s). This option +# conflicts with the enable-checker option +#disable-checker= +disable-checker=similarities + +# Enable all messages in the listed categories (IRCWEF). +#enable-msg-cat= + +# Disable all messages in the listed categories (IRCWEF). +disable-msg-cat= + +# Enable the message(s) with the given id(s). +#enable-msg= + +# Disable the message(s) with the given id(s). +disable-msg=W0511,R0922,W0201 + +# The new pylint 0.21+ style (plus the similarities checker, which is no longer +# a separate opiton, but a generic disable control) +disable=W0511,R0922,W0201,R0922,R0801,I0011