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


#1

Hi All,

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


#2

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


#3

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 .


#4

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 ;).


#5

Thanks, bengtler.

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


#6

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/