JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
This page lists the built-in Java warning classes for CodeSonar.
These warnings are also available for Kotlin projects targeting the JVM (when analyzed with cs-java-scan).
See also C/C++ Warning Classes, C# Warning Classes.
The Java warning classes are detected in code analyzed with cs-java-scan.
The classes are supported for Java code, and also for Kotlin code targeting the JVM.
Important Note: CodeSonar projects are built from Java bytecode (.class or archive files). However, CodeSonar will only analyze those parts of the project for which corresponding source code (.java or .kt files) is also available, because warning reports are not useful or comprehensible without source information.
The Java warning classes can be divided into four groups.
The table of Java warning classes that are disabled by default, below, specifies the security/deep/pedantic designation for each warning class.
There are several configuration presets that are specific to the Java analysis, as well as a number of presets that apply across all analyzed source languages.
| Preset | Notes |
|---|---|
| java_complete | Enables all Java warning classes |
| java_security, java_deep, java_pedantic | Enable the security, deep, and pedantic Java warning classes, respectively. |
| certjava | Enable all warning classes associated with rules and recommendations in the SEI CERT Oracle Coding Standard for Java. |
CodeSonar will perform checks for warnings in these classes by default. If there are classes on this list for which you do not wish to see warnings, use WARNING_FILTER discard rules to instruct CodeSonar accordingly.
Reporting for these classes is disabled by default. See individual warning class documentation pages for enabling instructions: the requirements vary depending on the class.
The following warning classes are supported for all languages, including Java.
| Class Name | Mnemonic |
|---|---|
| Copy-Paste Error | MISC.CPE |
To report problems with this documentation, please visit https://support.codesecure.com/.