Incorrect call argument count
Reports method calls where the number of arguments passed (including blocks) doesn't match the method's signature. The method's signature is taken from either of:
The method declaration
The RBS type signature
A quick fix is available in some situations to add missing or remove excess arguments.
Example:
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.
RubyArgCount- 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: RubyIncorrectArgumentCount
Inspection options
Here you can find the description of settings available for the Incorrect call argument count inspection, and the reference of their default values.
- Check signatures from RBS
Option ID:
RubyExpectedSignatureProvider.RbsRubyExpectedMethodSignatureProviderDefault value:
Selected
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: |