pylint #4290 "Operator not preceded by a space" false negative [open]
Meding Olaf: Does someone know why the C0322 warning is produced only by the last line: n = 3+4 n = 3-4 n = 3*4 n = 3/4 n = 3%4 bimageview.py(153): [C0322, BImageViewMixin.highestCount] Operator not preceded by a space n = 3%4 ^ | |
priority | minor |
---|---|
type | bug |
done in | <not specified> |
load | 0.500 |
load left | 0.500 |
closed by | <not specified> |
Comments
-
2009/04/08 06:41, written by sthenault
add commentthis is actually because we want to allow math operator without surrounding spaces while we want surrounding space in
and the side effect is that
trigger the message. This is hard to fix without dropping the warning in case of string (since regular expressions used to detect missing spaces are applied on source code line where strings have been removed.
Another possibility would be to have a configuration option telling which operators should be surrounded by space.