code_inspections_and_intentions.md: Add an introduction to code inspections and intentions explaining the difference between them

This commit is contained in:
Karol Lewandowski 2025-03-13 13:22:15 +01:00
parent 7d83cea5bc
commit a7ccf85de7

View File

@ -12,6 +12,10 @@
</tldr> </tldr>
Code inspections analyze code for potential issues, such as errors, inefficiencies, or code smells.
Code intentions suggest improvements and refactorings to enhance readability and maintainability.
While inspections focus on detecting problems, intentions provide optional enhancements to improve code structure.
## Inspections ## Inspections
The code inspections for custom languages use the same API as all other code inspections, based on the [`LocalInspectionTool`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInspection/LocalInspectionTool.java) class. The code inspections for custom languages use the same API as all other code inspections, based on the [`LocalInspectionTool`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInspection/LocalInspectionTool.java) class.