![]() We suggest paying attention to them last, but don't ignore them completely because they can point to the errors in your code. Third level (yellow) contains controversial and minor warnings.Second level (orange) contains challenging and curious bugs, but it's more difficult to ensure that these errors are real is much more difficult.First level (red) contains warnings that may not necessarily be the most critical, but they're the most accurate.All warnings are categorized into 3 levels: they show how true errors will turn out to be: Searching for errors in codeĭon't be afraid if you receive many warnings. Open the project and wait until its structure loads in the Java projects view:Īfter the analysis is complete, you can move on to the most challenging, yet interesting part: examining the received warnings to find errors. If you use another one, download the necessary JDK and specify the path to its executable file in the corresponding setting ( File -> Preferences -> Settings -> PVS-Studio: Java For Running Analyzer). The analyzer requires JDK versions 11-19 to work. You can also install the core in an arbitrary directory and specify the path to it in the VS Code settings ( File -> Preferences -> Settings -> PVS-Studio: Java Projects Analyzer Path). Note: to autodetect the core, install the extension in the default directory for your OS. To analyze Java projects with the PVS-Studio extension, you need to have the standard Java extensions installed in VS Code: Language Support for Java(TM) by Red Hat and Project Manager for Java. You can find a small installation guide in one of my previous articles. Let's get cracking! Analyzer installationįirst, install the Java analyzer core and the extension for VS. Now we're aiming to find errors in the Java project, not in the C# one. So, I'd like to show you how to work with the plugin, as I did in one of my previous articles. ![]() It has recently received a major update, and now you can use the extension to run the analysis for Java projects. PVS-Studio for VS Code is one of such plugins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |