How to find unused variable and ionic injectors(Ex: $state,$scope) in entire ionic project

Hi All,

Is there tool to find unused variable and ionic injectors(Ex: $state,$scope) in ionic project. I am using tool eclipse.

there should be a jslint/jshint or eslint plugin for eclipse. there you can configure warnings for unused variables/parameters.

Hi,

Thanks for update, Installed jslint plugin in eclipse but it showing unused variables in .java files. I want that should be shown in .js files .

i do not know how to configure eclipse… but JShint and JSLint are made for JavaScript and not java… please check, if you correctly installed the plugin.

And i would never use something heavy like eclipse for webdevelopment ;).

1 Like

Thanks, bengtler.

can you please send me tutorial or example links it helps me.

Like i said, i am not a fan of eclipse so i do not use it, but google helps:
http://github.eclipsesource.com/jshint-eclipse/