문제

Starting with pylint-1.0.0 the --include-ids argument is no longer allowed.

How do I get:

************* Module foo.bar
E:199,11: Module 'yaml' has no 'scanner' member (no-member)
************* Module foo.baz
W:153,27: Unused variable '_filenames' (unused-variable)

to show the IDs (e.g. W0142), for each warning?

도움이 되었습니까?

해결책

The new way to specify this is the command line parameter '--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'.

다른 팁

The proper command which can be used is

python3 -m pylint --msg-template="{path}||{msg_id}||{symbol}||{category}||{line}||{column}||{msg}" sscript.py
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top