Hi
Currently we are using Enterprise Edition Version 7.9.3 (build 33349)
I am trying to identify a violation rule for C#, this rule occurs if an element is completely missing a documentation header, or if the header is empty. In C# the following types of elements can have documentation headers: classes, constructors, delegates, enums, events, finalizers, indexers, interfaces, methods, properties, and structs.
Documentation header mean XML comments. Please find the below example. I tried to look through all the existing rules but couldn’t find any.
Example:
///
/// Joins a first name and a last name together into a single string.
///
/// The first name to join.
/// The last name to join.
/// The joined names.
public string JoinNames(string firstName, string lastName)
{
return firstName + " " + lastName;
}
Can you please let me know if any rule is already existing, if so how do we add that particular rule to the list? What is the rule number?
Please let me know if any additional information is needed.
Thanks