The thresholds are those of the profile chosen below: by default, the profile last used in Code | Calculate Metrics.... One problem is reported for each value beyond a threshold, on the name of the element, with the metric, the value and the threshold, for example:
Cyclomatic Complexity is 23: beyond the error threshold (> 20)
Only the metrics that the profile enables and that have a threshold in it are checked, and only those computed from the code of the element itself, which are cheap enough to compute while you type: complexity, nesting, size, comments and documentation, statements, Halstead and the like. The metrics that need the rest of the project are left to Calculate Metrics: callers and overriding methods, the inheritance tree (depth of inheritance, children, inherited and overridden operations), the test metrics, coupling and dependencies, and every package, module and project metric.
Java files are checked, and Kotlin (JVM) files when the Kotlin plugin is enabled. A problem is suppressed in the
usual way, for example with @SuppressWarnings("StauMetroThreshold") in Java or
@Suppress("StauMetroThreshold") in Kotlin.
Use Only error thresholds to leave out the values that only go beyond a warning threshold.