Finding unused Javascript functions


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
6 views
The problem is that there are several js files full of functions. The functions are quite diverse, just dumped in a heap.

They can be used in other js modules, can be written directly in html templates, and can appear in the php source code.

Need to find functions that accurately never called.

In fact, the task is simple — to parse these files to determine the functions, then parse another bunch of files on the subject occurrences of names. To give a list of those that were not found or found but very little.

In principle it is not difficult to write, but suddenly there is such Tulsa?
by | 6 views

2 Answers

0 like 0 dislike
IDE phpStorm www.jetbrains.com/phpstorm/but this is a development environment
by
0 like 0 dislike
Absolute certainty as to the automatic method not give.
\r
obj['method_' + name]();
by
110,608 questions
257,186 answers
0 comments
28,135 users