Boolean literal argument without parameter name
Reports call arguments with Boolean
type without explicit parameter names specified.
When multiple boolean literals are passed sequentially, it's easy to forget parameter ordering that could lead to mistakes. Explicit parameter names allow for easier code reading and understanding.
Example:
The quick-fix adds missing parameter names:
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.
BooleanLiteralArgument- 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 options
Here you can find the description of settings available for the Boolean literal argument without parameter name inspection, and the reference of their default values.
- Report also on call with single boolean literal argument
Not selected
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Kotlin, 242.22892-IJ |