summaryrefslogtreecommitdiff
path: root/checkers/strings.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-615/+0
|
* Fix a false positive with `too-few-format-args` warning.Claudiu Popa2015-01-301-1/+1
| | | | | | | | | The warning was emitted when the string format contained a normal positional argument ('{0}'), mixed with a positional argument which did an attribute access ('{0.__class__}'). Closes issue #463.
* pylint pylintSylvain Th?nault2014-11-191-8/+6
|
* Don't try to analyze string formatting with objects coming from function ↵Claudiu Popa2014-11-111-6/+3
| | | | arguments. Closes issue #373.
* Prefer an isinstance check instead of a hasattr.Claudiu Popa2014-11-041-1/+2
|
* Move the string parsing inside the try body.Claudiu Popa2014-09-301-1/+1
| | | | | | It seems that _formatter_parser raises ValueError on PyPy, while on CPython it raises the error only when iterating the result.
* [refs #351] Handling assignment of the string format method to a variablecarl2014-09-271-1/+7
|
* Change basestring to six.string_typesBrett Cannon2014-08-291-3/+6
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-4/+4
|
* Fix a false positive with 'too-many-format-args', when the format string ↵cpopa2014-08-271-8/+2
| | | | contains mixed attribute access arguments and manual fields. Closes issue #322.
* Fix a false positive with 'too-few-format-args', when the format strings ↵cpopa2014-08-111-3/+3
| | | | contains duplicate manual position arguments. Closes issue #310.
* Cleanup.cpopa2014-08-081-5/+10
|
* Properly handle unicode format strings for Python 2. Closes issue #296.cpopa2014-08-051-6/+9
|
* Properly handle nested format string fields. Closes issue #294.cpopa2014-08-041-21/+35
|
* Analyze only strings by the string format checker. Closes issue #287.cpopa2014-07-311-0/+7
|
* Handle 'too-few-format-args' or 'too-many-format-args' for format strings ↵cpopa2014-07-311-0/+16
| | | | with both named and positional fields. Closes issue #286.
* Fix a false positive with string formatting checker, when using keyword ↵cpopa2014-07-291-5/+11
| | | | argument packing. Closes issue #288.
* Fix a false positive with string formatting checker, when encountering a ↵cpopa2014-07-291-10/+13
| | | | string which uses only position-based arguments. Closes issue #285.
* linting pylintSylvain Th?nault2014-07-251-6/+5
|
* Restore compatibility with Python 2.6.cpopa2014-07-241-6/+12
|
* Don't use set comprehension.cpopa2014-07-231-4/+4
|
* Reorder a check for better coherence, fix a couple of docstrings.cpopa2014-06-261-9/+8
|
* Separate the good cases from the bad cases, improve the messages.cpopa2014-06-261-17/+22
|
* No need for a deque here.cpopa2014-06-231-8/+3
|
* Skip nodes with starargs or kwargs for now.cpopa2014-06-161-0/+4
|
* Filter out non-const nodes.cpopa2014-06-151-0/+2
|
* Fix a potential crash for accessors like "{0.missing}".cpopa2014-06-151-1/+1
|
* Filter YES arguments.cpopa2014-06-151-2/+2
|
* Move the filtering of YES nodes at the beginning of while block.cpopa2014-06-141-2/+3
|
* Skip YES arguments, add a few test cases.cpopa2014-06-131-0/+2
|
* Change message ids.cpopa2014-06-081-6/+6
|
* Small fixes.cpopa2014-06-081-46/+41
|
* Make sure that split_format_field_names always returns ints instead of longs ↵cpopa2014-06-081-1/+11
| | | | for Python 2.
* Add support for checking attribute and key lookups in string formatting. ↵cpopa2014-06-081-32/+134
| | | | Improve the string formatting tests.
* Drop Python 2.6 support, other minor fixes.cpopa2014-06-071-31/+30
|
* Merge with default.cpopa2014-06-071-11/+150
|\
| * Various changes to format checker.cpopa2013-10-031-9/+47
| |
| * Proper handling of manual field specifiers.cpopa2013-09-251-4/+6
| |
| * Add new string format checks.cpopa2013-09-251-0/+26
| |
| * Bug fix.cpopa2013-09-221-1/+1
| |
| * Add basic checks for Python 3 format strings.cpopa2013-09-221-11/+84
| |
* | Do not warn about \u escapes in string literals when Unicode literalsTorsten Marek2014-04-181-3/+6
| | | | | | | | are used for Python 2.*. Fixes BitBucket issue #151.
* | Raise all messages by name in the strings checkers.Torsten Marek2014-04-041-12/+14
| |
* | Updated FSF address.Arun Persaud2014-02-231-1/+1
| |
* | Fix typos in description messagescpopa2013-12-261-2/+2
| |
* | various pylint fixesSylvain Th?nault2013-12-221-1/+1
|/
* some pylint and style fixesSylvain Th?nault2013-07-311-1/+1
|
* Add @check_messages(...) annotations to help not to spend time on unneeded ↵Anthony Truchet2013-06-181-1/+4
| | | | | | | | checks. We only add such annotations is reasonably simple cases. Some visit methods are quite involved and build a checker's state ; such methods are skipped in the first phase.
* astng has been renamed astroidDavid Douard2013-06-171-16/+16
|
* Tokenize the input source only once and hand it to all checkers that need ↵Torsten Marek2013-05-011-4/+4
| | | | | | | | | 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.