Inspectopedia 2025.2 Help

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:

def example end # Too many arguments provided example(true)

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.

Settings or Preferences | Editor | Inspections | Ruby | Probable bugs

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.RbsRubyExpectedMethodSignatureProvider

Default 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:

//noinspection RubyArgCount

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:

Qodana for Ruby 2025.2, RubyMine 2025.2,

Last modified: 18 September 2025