Code Inspections in General
This topic lists all JetBrains Rider code inspections available in General.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Annotator | Reports problems that are found by language annotators in the result of a batch code inspection run. | |
Duplicated code fragment | Reports duplicated blocks of code from the selected scope: the same file or the entire project. The inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window. | |
Inconsistent line separators | Reports files with line separators different from the ones that are specified in the project's settings. | |
Injected references | Reports unresolved references injected by Language Injections.
@Language("file-reference")
String fileName = "/home/user/nonexistent.file"; // highlighted if file doesn't exist
| |
Problematic whitespace | Reports the following problems:
| |
Redundant suppression | Reports usages of the following elements that can be safely removed because the inspection they affect is no longer applicable in this context:
Example:
public class C {
// symbol is already private,
// but annotation is still around
@SuppressWarnings({"WeakerAccess"})
true;
void f() {
CONST = false;
}
}
| |
Syntax error | Reports syntax errors that have been found in the result of a batch code inspection run. | |
TODO comment | Reports TODO comments in your code. | |
The line is longer than allowed by code style | Reports lines that are longer than the right margin parameter specified in the Code Style settings. |