summaryrefslogtreecommitdiff
path: root/test/unittest_lint.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-697/+0
|
* Cleanup lint.py.Claudiu Popa2015-01-021-2/+2
| | | | | Import modules, instead of objects from them, used only once. Trim a couple of long lines, remove a couple of unused variables and so on.
* tests: fix more tests broken by max-line-length changeSylvain Th?nault2014-11-191-1/+1
|
* Add support for disabling a checker.Claudiu Popa2014-11-161-0/+8
| | | | | | | | | A checker can be disabled (all of its messages will not be emitted) by specifying an 'enabled' attribute on the checker class. Currently, this is used to disable the Python3 porting checker, which will be enabled by the '--py3k' flag.
* Make most tests run unmodified under Python 3.4.Torsten Marek2014-11-091-3/+4
|
* Allow linting multiple directories at once.Claudiu Popa2014-10-191-44/+117
| | | | Patch by Buck Evan.
* Add new '-j' option for running checks in sub-processes.Claudiu Popa2014-10-151-10/+17
| | | | Patch by Michal Nowikowski.
* Generate html output for missing files. Closes issue #320.cpopa2014-08-251-1/+10
|
* Implement confidence levels.Torsten Marek2014-07-241-6/+14
| | | | | | | - attach confidence levels to a number of messages - include confidence levels in the message object - if the confidence of a message is not HIGH or UNDEFINED, include it in the test output.
* Remove dependency on logilab.testlib in the test suite (also removes Python ↵Torsten Marek2014-07-261-10/+46
| | | | 2.5 compatibility).
* [refactor] move handling of file specific state to its own FileState class ↵Sylvain Th?nault2014-07-241-27/+27
| | | | (mostly message states)
* extract a messages store from the MessagesHandlerMixIn classSylvain Th?nault2014-07-241-73/+83
|
* fix bad indentation issuesSylvain Th?nault2014-07-241-6/+7
|
* fix explicit check of python script. Closes #219Sylvain Th?nault2014-04-291-2/+11
|
* restore init-hook accidentaly renamed in cset 474324137864. Closes #211Sylvain Th?nault2014-04-251-2/+2
|
* Unify and improve function invocation errors:Torsten Marek2014-04-041-2/+2
| | | | | | - always use argument instead of a mix of argument and parameter - simplify messages - add type of callable to each error (function, method etc)
* ensure --init-hooks is evaluated before other options. Closes issue #166Sylvain Th?nault2014-03-211-1/+6
|
* enhance option preprocessing error detection and related testsSylvain Th?nault2014-03-211-2/+16
|
* [test] drop unused class and other minor cleanupsSylvain Th?nault2014-03-211-24/+6
|
* Updated FSF address.Arun Persaud2014-02-231-1/+1
|
* Fix various issues with linesep for Windowscpopa2013-12-231-8/+18
|
* [test] use assertTrue instead of deprecated assert_Sylvain Th?nault2013-12-201-1/+1
|
* Add support for registering deprecated names for messages.Torsten Marek2013-11-061-0/+17
|
* Allow linter subclasses to override should_analyze_file to skip allTorsten Marek2013-11-051-0/+7
| | | | processing of a file.
* fix tests broken due to Windows line ending or by output format change ↵Sylvain Th?nault2013-10-251-5/+5
| | | | introduced in ed904ee30bc5
* [lint]?rename get_astroid into get_astSylvain Th?nault2013-10-251-1/+1
|
* Proper merge.testscpopa2013-09-251-17/+35
|
* Fixing various tests for other platforms (Windows).cpopa2013-09-051-9/+14
|
* test: make errors from test_errors_only more understandableJulien Cristau2013-06-201-4/+4
| | | | "True is not False" considered unhelpful.
* Turn reporters into proper plugins rather than classes that are loaded ↵Torsten Marek2013-06-191-0/+4
| | | | explicitly.
* [test] drop broken dead codeSylvain Th?nault2013-06-191-9/+1
|
* Allow messages to be added by symbolic name as well as by ID.Torsten Marek2013-06-181-1/+11
|
* Extended the docstring tester to optionally allow skipping the requirement forTorsten Marek2013-06-181-1/+1
| | | | short functions/methods/classes and added a testcase.
* astng has been renamed astroidDavid Douard2013-06-171-3/+3
|
* Tokenize the input source only once and hand it to all checkers that need ↵Torsten Marek2013-05-011-2/+2
| | | | | | | | | the token stream. A lot of checkers need access to the token stream, but they all tokenize the source code again in BaseRawChecker.process_module. This change introduces a new checker type ITokenChecker, for which the token stream is created exactly once in PyLinter, and then injected into all registered checkers.
* Add messages I0020 and I0021 for reporting of suppressed messages and ↵tmarek2012-11-121-1/+30
| | | | | | | useless suppression pragmas. Closes #110840 Both messages are disabled by default, and only emitted after all other checkers have been processed.
* don't want to run a checker only because of a Fatal errorSylvain Th?nault2012-09-201-9/+3
|
* Added the ability to specify reporter class name as report's 'output-format'.Kevin Jing Qiu2012-09-201-0/+13
| | | | | | This allows a custom reporter to be used to format reports. Backwards-compatibility is maintained, so a user can still specify the named reporters such as 'text' or 'parseable'.
* stop using assert_, rather use assertTrue / assertFalseSylvain Th?nault2012-09-191-55/+63
|
* Closes #104572: symbolic warning names in output (by Martin Pool)Martin Pool2012-09-191-0/+30
| | | | triggered whatever the format using a command line option
* fix R0801 similarities bug. Closes #63424Anthony VEREZ2012-09-191-3/+2
|
* Fix tests which failed on tempfile file comparaison due to Mac OS X which ↵FELD Boris2012-06-071-0/+15
| | | | make /tmp a symlink to /private/tmp
* drop unittest2 deprecation warningSylvain Th?nault2011-10-241-4/+4
|
* closes #76920: don't crash in preprocess_option if some looked option has no ↵Torsten Marek2011-09-231-1/+28
| | | | | | value while on is expected.
* closes #69993: Additional string format checks for logging moduleSylvain Th?nault2011-07-081-2/+2
|
* py3k: need to handle guess_encoding in astngEmile Anclin2010-11-221-2/+3
| | | | | | | | | | Astng will try to find the right encoding and provide the right "stream" interface for the Pylint checkers. Reading a stream with the wrong encoding in py3k will generate a UnicodeError. The introduced a 'F0010' failure should maybe be replaced by E0501, E0502 and F0002? However, can we call 'unexpected errors' the ASTNGBuildingExceptions that we raise in logilab.astng.builder?
* test: fix tests, test some more message and report disablingEmile Anclin2010-12-131-5/+35
|
* messages: add "check_messages" decorator to store messagesEmile Anclin2010-12-091-1/+1
| | | | | | refactor PyLintASTWalker.add_checker to check the stored method's messages; in PyLintASTWalker.add_checker, we only disable methods that has been decorated and have no activated message.
* cleanup: remove unused needs_checkers attribut and sort_checkers methodEmile Anclin2010-12-091-2/+2
| | | | | what was expected to be accomplished needs_checkers will be done easier with a decorator
* remove more 2.4 compatEmile Anclin2010-11-151-1/+1
|