summaryrefslogtreecommitdiff
path: root/checkers/format.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-964/+0
|
* Change default max-line-length to 100 rather than 80Sylvain Th?nault2014-11-191-1/+1
|
* pylint pylintSylvain Th?nault2014-11-191-11/+13
|
* Move old-ne-operator to the python3 porting checker.Claudiu Popa2014-11-151-11/+0
|
* Move backtick warning in python3 porting checker.Claudiu Popa2014-11-151-9/+0
|
* 'too-many-lines' disable pragma can be located on any line, not only the first.Claudiu Popa2014-10-231-2/+10
| | | | Closes issue #321.
* Drop old and useless code.Claudiu Popa2014-10-211-3/+0
|
* Add max_module_lines to warning message. Other length warnings already have ↵frost-nzcr4 frost-nzcr42014-09-151-2/+2
| | | | this format.
* Wrap dict.items() et. al. in list()Brett Cannon2014-08-291-1/+2
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-3/+6
|
* Fixed tests for line endings checker.Michal Nowikowski2014-07-261-1/+2
|
* mergeMichal Nowikowski2014-07-261-20/+16
|\
| * Use the maxversion attribute on some warning instead of checking for the ↵Torsten Marek2014-07-251-21/+17
| | | | | | | | Python version.
* | Removed sign word from description of message.Michal Nowikowski2014-07-261-1/+1
| |
* | mergeMichal Nowikowski2014-07-251-45/+45
|\ \ | |/
| * linting pylintSylvain Th?nault2014-07-251-47/+47
| |
* | Added two checkers for mixed line endings and for unexpected line endings.Michal Nowikowski2014-07-251-3/+31
|/
* Allow implicitly concatenated strings to align with the previous string part.Torsten Marek2014-07-251-15/+20
|
* Use Module.future_imports for detecting if print is a builtin.Torsten Marek2014-04-251-4/+2
|
* Make the test suite pass on Python 2.6 again.Torsten Marek2014-04-261-1/+1
|
* Simplify the processing inside the main token loop, now that we have access ↵Torsten Marek2014-04-181-34/+30
| | | | | | to the full token stream. Also fix a bug with misindented lines that start with a number not being reported properly.
* Handle <> in the surface token dispatcher part.Torsten Marek2014-04-181-6/+8
|
* Add a check for indentation of continued lines, enforcing PEP8 style of ↵Torsten Marek2014-04-171-18/+344
| | | | | | continued and hanging indents.
* Only emit symbolic warnings from the format checker.Torsten Marek2014-04-161-17/+17
|
* Add missing operator == to list of comparison operators in format checker.Torsten Marek2014-03-301-1/+1
|
* Updated FSF address.Arun Persaud2014-02-231-1/+1
|
* various pylint fixesSylvain Th?nault2013-12-221-5/+3
|
* [py3] various fixes for python3Sylvain Th?nault2013-12-201-1/+3
|
* fix indentation in various places. Damned googlers :pSylvain Th?nault2013-12-041-85/+85
|
* Combine 'no-space-after-operator', 'no-space-after-comma' and ↵Torsten Marek2013-11-061-88/+177
| | | | | | | | | | | | 'no-space-before-operator' into 'bad-whitespace' Changes: - consistent whitespace (single space on either side) is enforced for assignment operators - some constructs are now configurable - whitespace after trailing comma - spacing around key/value separators in dicts - checks now happen on the token stream itself rather than evaluationg regular expressions against the raw code
* Add a new warning 'superfluous-parens' for unnecessary parenthesesTorsten Marek2013-11-061-3/+108
| | | | after certain keywords.
* Added a new option to the multiple-statement-per-line warning to allowTorsten Marek2013-11-051-7/+31
| | | | | if statements with single-line bodies on the same line. The option is off by default.
* Fix issue #55 (false-positive trailing-whitespace on Windows)moxian2013-08-291-1/+1
|
* some pylint and style fixesSylvain Th?nault2013-07-311-1/+1
|
* Emit warnings about lines exceeding the column limit when those lines are ↵Torsten Marek2013-07-241-1/+12
| | | | inside multiline docstrings.
* add test for no-final-new-lineSylvain Th?nault2013-07-171-1/+1
|
* Added new warning no-final-newline.Torsten Marek2013-06-221-6/+12
|
* Add a warning for trailing whitespace.Torsten Marek2013-06-181-2/+10
|
* Extend the line length check.Torsten Marek2013-06-171-2/+13
|
* 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-17/+5
| | | | | | | | | 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.
* Make sure that pragmas that apply to whole lines are interpreted literally, ↵Torsten Marek2013-03-291-5/+11
| | | | | | | | | so that their scope is not extended to the whole scope if they occur at the beginning of a scope. Closes #123285
* move string literal checker from format.py to strings.pySylvain Th?nault2013-03-291-104/+1
|
* string check: don't warn about octal escape sequence, warn about \o (not ↵Martin Pool2013-02-251-1/+4
| | | | octal in python). Closes #111799
* lint fixesSylvain Th?nault2012-09-191-1/+1
|
* Closes #104572: symbolic warning names in output (by Martin Pool)Martin Pool2012-09-191-0/+14
| | | | triggered whatever the format using a command line option
* [format checker] check for anomalous backslash escape (new W1401, W1402). ↵Sylvain Th?nault2012-09-191-4/+102
| | | | Closes #104571
* fix grammatical error for W0332 message. Closes #100654Sylvain Th?nault2012-08-291-2/+2
|
* add note about soon useless stream.seek()Sylvain Th?nault2011-10-261-1/+1
|
* typo; fix py3k testsEmile Anclin2010-12-161-1/+1
|