PDA

View Full Version : Geany: Check for unused variables



BobTheZealot
November 5th, 2012, 12:38 AM
Hi all,

Not sure where this went, but this subforum seemed like the closest fit.

People refer to a feature in Geany that allows you to identify unused variables. How do I enable that? Maybe I'm being dense, but I can't seem to find this feature (I mostly edit .py files).

Thanks!

MG&TL
November 5th, 2012, 10:16 PM
Not sure if the feature supports python-as I understand it, syntax and programming helpers are done on a per-language basis in Geany.

Can't find anything to do it from the interpreter, either. :(

BobTheZealot
November 6th, 2012, 05:52 AM
Oh well. Thank you anyway.

r-senior
November 6th, 2012, 06:04 PM
You can set up a build task in Geany to run pylint or similar. Output then appears in the build results window. It doesn't highlight the issues in the code itself but it's useful.

You'll probably want to customise the rules pylint uses but there's documentation in the manual: http://www.logilab.org/card/pylint_manual

Geany's build settings window: