Possibly excessive whitespace trim
Reports excessive whitespace trims in Go template expressions. Inspection follows the following logic applied to each statement:
1. Doesn't have any trims → Skip it
2. Has both trims and is surrounded by non-blank elements → Problem
3. Has both trims and has preceding or succeeding non-blank elements → Problem if it produces values (e.g., it is a non-empty element itself)
4. Has the left trim and preceding non-blank element → Same as the previous one
5. Has the right trim and succeeding non-blank element → Same as the previous one
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
ExcessiveWhitespaceTrimInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: ExcessiveWhitespaceTrimInspection
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: | |
Can be installed with plugin: | Kubernetes, 252.26654.0 |