~ubuntu-branches/ubuntu/quantal/pylint/quantal

« back to all changes in this revision

Viewing changes to doc/features.txt

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2011-08-02 20:05:50 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110802200550-5efk0cfszfzjpjdn
Tags: 0.24.0-1
* New upstream release
* debian/copyright
  - bump upstream and packaging copyright years
* debian/rules
  - add build-arch build-indep targets, as suggested by lintian
* debian/control
  - bump Standards-Version to 3.9.2 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
Messages
107
107
~~~~~~~~
108
 
:W6501: *Specify string format arguments as logging function parameters*
 
108
:W1201: *Specify string format arguments as logging function parameters*
109
109
  Used when a logging statement has a call form of "logging.<logging
110
110
  method>(format_string % (format_args...))". Such calls should leave string
111
111
  interpolation to the logging method itself and be written "logging.<logging
113
113
  incurring the cost of the interpolation in those cases in which no message
114
114
  will be logged. For more, see http://www.python.org/dev/peps/pep-0282/.
115
115
 
 
116
:E1200: *Unsupported logging format character %r (%#02x) at index %d*
 
117
  Used when an unsupported format character is used in a logging statement 
 
118
  format string.
 
119
 
 
120
:E1201: *'Logging format string ends in middle of conversion specifier*
 
121
  Used when a logging statement format string terminates before the end of a
 
122
  conversion specifier.
 
123
 
 
124
:E1205: *Too many arguments for logging format string*
 
125
  Used when a logging format string is given too few arguments.
 
126
 
 
127
:E1206: *Not enough arguments for logging format string*
 
128
  Used when a logging format string is given too many arguments.
116
129
 
117
130
similarities checker
118
131
--------------------
149
162
 
150
163
Messages
151
164
~~~~~~~~
152
 
:E9900: *Unsupported format character %r (%#02x) at index %d*
 
165
:E1300: *Unsupported format character %r (%#02x) at index %d*
153
166
  Used when a unsupported format character is used in a format string.
154
 
:E9901: *Format string ends in middle of conversion specifier*
 
167
:E1301: *Format string ends in middle of conversion specifier*
155
168
  Used when a format string terminates before the end of a conversion specifier.
156
 
:E9902: *Mixing named and unnamed conversion specifiers in format string*
 
169
:E1302: *Mixing named and unnamed conversion specifiers in format string*
157
170
  Used when a format string contains both named (e.g. '%(foo)d') and unnamed
158
171
  (e.g. '%d') conversion specifiers. This is also used when a named conversion
159
172
  specifier contains * for the minimum field width and/or precision.
160
 
:E9903: *Expected mapping for format string, not %s*
 
173
:E1303: *Expected mapping for format string, not %s*
161
174
  Used when a format string that uses named conversion specifiers is used with
162
175
  an argument that is not a mapping.
163
 
:E9904: *Missing key %r in format string dictionary*
 
176
:E1304: *Missing key %r in format string dictionary*
164
177
  Used when a format string that uses named conversion specifiers is used with a
165
178
  dictionary that doesn't contain all the keys required by the format string.
166
 
:E9905: *Too many arguments for format string*
 
179
:E1305: *Too many arguments for format string*
167
180
  Used when a format string that uses unnamed conversion specifiers is given too
168
181
  few arguments.
169
 
:E9906: *Not enough arguments for format string*
 
182
:E1306: *Not enough arguments for format string*
170
183
  Used when a format string that uses unnamed conversion specifiers is given too
171
184
  many arguments
172
 
:W9900: *Format string dictionary key should be a string, not %s*
 
185
:W1300: *Format string dictionary key should be a string, not %s*
173
186
  Used when a format string that uses named conversion specifiers is used with a
174
187
  dictionary whose keys are not all strings.
175
 
:W9901: *Unused key %r in format string dictionary*
 
188
:W1301: *Unused key %r in format string dictionary*
176
189
  Used when a format string that uses named conversion specifiers is used with a
177
190
  dictionary that conWtains keys not required by the format string.
178
191
 
657
670
  This is a particular case of W0104 with its own message so you can easily
658
671
  disable it if you're using those strings as documentation, instead of
659
672
  comments.
 
673
:W0106: *Expression "%s" is assigned to nothing',*
 
674
  Used when an expression that is not a function call is assigned to nothing. 
 
675
  Probably something else was intended.
660
676
:W0107: *Unnecessary pass statement*
661
677
  Used when a "pass" statement that can be avoided is encountered.)
662
678
:W0108: *Lambda may not be necessary*