Skip to main content

no-custom-rule-additional-verification-method-argument

Overview

This rule belongs to the custom-ruleset-validation ruleset and states that:

The method that needs to be applied on the target entity as part of the custom validation, specified using VerificationMethod, can support one or more arguments that can be provided alongside the rule definition using the VerificationMethodArgs property. Only supported arguments must be provided and setting any additional arguments is forbidden.

PropertyValue
EnabledYes
Maximum SeverityError
MessageProvided argument for the verification method is unrecognized.
CodeCUSTOMRULESET_V107
TypeValidation
Rule SystemSemantic
Broad CategoryCustom Rules
Tagscustom ruleset semantic validation argument method verification rule

Suggested Fixes

  • Argument names are compared in a case-sensitive manner.
  • If you think the argument is allowed/supported, ensure that the argument name case matches the case of the argument listed in the documentation and has no typos.
  • Remove any additional arguments not explicitly listed in the custom rule method documentation.

For More Information