I'm not even sure what to type in Google.<p>Let's say I have a commit. I want a tool which analyzes codebase and show all places in code which could be affected by this commit. For example if I change a function X the tool will show all places which depends on a result of the function.<p>I guess that in Java it could be doable because of its strict nature. Is there anything like this? Or it's an idea for a side-project?
That particular sub-area of static analysis is called (change) impact analysis. If you google that you'll find several tools, but many of those results are a couple of years old, or framework-specific. Take a look and good luck.
It's called static analysis, which given JavaScript's dynamic nature obviously doesn't work as well as with statically-typed languages like Java. However, IntelliJ IDEA or WebStorm offer decent analysis tools for JavaScript as well. In IntelliJ IDEA "Find usages" is the name of the feature you're looking for.
You can definitely write a tool to do it for JavaScript.<p>Sublime text has something similar that gives you the usages of a function when you hover over its name. Its not as 100 percent accurate as strict static code analysis, but it works pretty well for function names that are not duplicated everywhere.