Skip to content

InputAttributeIsUnique

Fraser Greenroyd edited this page Apr 24, 2020 · 2 revisions

Summary

Severity - Fail

Check method - Here

Details

The InputAttributeIsUnique check ensures that there are not duplicate input attributes for the same parameter.

This ensures that our documentation is accurate and valid for what users might see.

For example, the following method would fail this check because the input attribute is duplicated

[Input("hello", "My variable")]
[Input("hello", "Also my variable")]
public static void HelloWorld(double hello)
{
    
}

The correct implementation should instead look like this:

[Input("hello", "My variable")]
public static void HelloWorld(double hello)
{
    
}
Clone this wiki locally