Ask HN: Looking for a tool
I'm not even sure what to type in Google.
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.
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?
11 comments
[ 1.1 ms ] story [ 40.0 ms ] threadExample:
If I change something() method IntelliJ will show only the first line, even though the third one is affected by the change as well.You're right IntelliJ IDEA doesn't provide that feature out-of-the-box. SonarLint does something like this but only for specific patterns (or rather anti-patterns). I don't know about a general purpose tool that does this though.
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.