简体   繁体   中英

IntelliJ IDEA code inspection - external usages of - taking so long

I run Analyze -> Inspect code. But it runs so long - for few hours. Most of the time (i think about 99%) progress bar says 'Processing external usages of xxx' where xxx stands for I guess, some getter/setters or fields. I would like to ask what this exactly do, what is a result of this long process, and how to disable this.

"Inspect Code" is static code analysis. It tries to detect some simple bugs and other issues in your code without running it. Basically, it need to go through all your source codes. If you have lots of codes, it may take a long time to finish this task. So select the inspection scope carefully. Please check the following link for details of Code Inspections & Fixes.

Code Inspections & Fixes

There are some inspection settings may cause idea print "Processing external usages of" message. The most common is "Unused declaration". If it is checked, idea is trying to search if any other class is using a declared symbol, such as, a class, a field or a method. It will prompt a warning if a symbol is not used at all. So it may take a long time if you have a large code base. Maybe you can uncheck it if it is useless for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM