Login
namedParams rule
Login

The rule to check if all calls in the code uses named parameters The syntax in a configuration file is::

[ruleType] ?not? namedParams

Disabling the rule

It is possible to disable the rule for a selected part of the checked code by using pragma ruleOff: "namedParams" before the code's fragment which shouldn't be checked.

To enable the rule again, the pragma ruleOn: "namedParams" should be added before the code which should be checked.

Examples

  1. Check if all calls in module set their parameters as named::

    check namedParams

  2. Search for all calls which don't set their parameters as named::

    search not namedParams