- 10 Nov, 2014 1 commit
-
-
Aaron Karper authored
This patch reduces the max-module-size of the project to 3600, which is slightly larger than the currently largest module (baring backend.py, which got a free pass): config.py In an efford to reduce the module size to something more reasonable, the next person to hit the wall will find a nice reminder: Please reduce the maximal module size further when possible. Signed-off-by:
Aaron Karper <akarper@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 07 Oct, 2014 1 commit
-
-
Niklas Hambuechen authored
This is to conform with our style guide. This setting was added in and becomes necessary with pylint 1.3. Signed-off-by:
Niklas Hambuechen <niklash@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 24 Sep, 2013 2 commits
-
-
Michele Tartara authored
In order to check for the correctness of the accesses to fields of objects, pylint uses astng, but this is known to fail on some dynamically generated classes. Still, newer pylint versions are stricter at performing this check, and therefore fail while testing our codebase. Disable the checking of a few selected classes that incur in this problem. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Recent versions of pylint require the first parameter of a metaclass to be "cls". Older versions want "mcs". There's no way to support both by changing the code, so the configuration file of pylint is changed instead, to have the current codebase work with both versions. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 07 Aug, 2013 1 commit
-
-
Thomas Thrainer authored
The test support code is mainly written from scratch, so in order to ensure to keep the code quality high, enable pylint and PEP8 checks for it. Due to some specialities of the test code, a dedicate pylintrc-test file is created which configures pylint for test code. Those differences include: - lowercase functions are allowed if the first word is test, assert or main - lowercase methods are allowed if the first word(s) is test, assert, runTests, setUp or tearDown - R0201 (method could be a function) is disabled Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 22 May, 2013 1 commit
-
-
Thomas Thrainer authored
The longest Python files we still have are around 4200 lines long. In order to prevent future growth, limit the maximum file length (checked by pylint) to 4500 lines. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 23 Jun, 2010 1 commit
-
-
Iustin Pop authored
For the type system, we want a slightly relaxed rule for constant naming, so we update the pylint rule. But the old _TPInt and _TNEString were not clear enough, so we expand them. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 22 Jun, 2010 1 commit
-
-
Iustin Pop authored
While we'll need to update the source files too, at least this change makes pylint 0.21 not fail on the current source tree. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 04 Jan, 2010 4 commits
-
-
Iustin Pop authored
There seems to be a bug in pylint relating to W0201 (“Attribute '%r' defined outside __init__”) being re-enabled by simple comments and not being able to be disabled again. Until that is fixed, we disable this warning. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
R0922, “Abstract class is only referenced 1 times”, cannot be disabled in the source code, and thus lib/http/auth.py:HttpServerRequestAuthentication gives this warning (it's actually also referenced from the tests, but we do not include them). Therefore we need to disable it at pylintrc level. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This is a very slow checker, estimated to be O(n²) by its author; so using it all the time is not good. It can be re-enabled on the command line via “--disable-checker=”. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
We don't get any useful out of this - a git grep is as effective, and these only pollute the pylint output. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 28 Dec, 2009 1 commit
-
-
Iustin Pop authored
Since the current pylintrc is in now way good for our style, we update it: - remove docstring checks, since we have too many cases where a docstring doesn't make sense - relax naming rules to cover more alternatives (but not break the naming rules) - increase many of the limits Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- 02 Oct, 2009 1 commit
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 07 Jul, 2009 1 commit
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-