TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Looking for a tool

4 pointsby szatkusalmost 8 years ago
I&#x27;m not even sure what to type in Google.<p>Let&#x27;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&#x27;s an idea for a side-project?

6 comments

gvisocalmost 8 years ago
That particular sub-area of static analysis is called (change) impact analysis. If you google that you&#x27;ll find several tools, but many of those results are a couple of years old, or framework-specific. Take a look and good luck.
remypalmost 8 years ago
Good test coverage goes a long way towards solving this problem.
BjoernKWalmost 8 years ago
It&#x27;s called static analysis, which given JavaScript&#x27;s dynamic nature obviously doesn&#x27;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 &quot;Find usages&quot; is the name of the feature you&#x27;re looking for.
评论 #15045439 未加载
评论 #15045373 未加载
paraditealmost 8 years ago
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.
stephenralmost 8 years ago
What language is your project? Jetbrains IDEs have static analysis based &quot;find usage&quot; for dynamic languages like php.
rawlandalmost 8 years ago
<p><pre><code> grep -inr &#x27;X&#x27; </code></pre> Can be expanded via regex, awk, etc...
评论 #15045492 未加载