I host IronPython inside a C # application and embed the host API in a global scope.
I just started to love syntastic for vim using pylint to test my scripts. But all the error messages [E0602, method_name] Undefined variable 'variable_name' for the entered variables annoy me.
I know of using # pylint: disable=E0602 to disable this error message, but I would prefer not to cripple a really useful function only for certain variable names.
How do you deal with this?
I am currently doing this at the top of my script:
try: host_object = getattr(__builtins__, 'host_object') except AttributeError: pass
What I really would like to do is:
# pylint: declare=host_object, other_stuff
source share