2020-06-30 16:59:06 +02:00
This rule allows you to check for certain types of comments before each method. For example, you may want to check for a Doxygen @author comment before each method.
== Noncompliant Code Example
2021-01-27 13:42:22 +01:00
With regular expression: ``++//! @brief[ \t]+[a-zA-Z ]+++``:
2020-06-30 16:59:06 +02:00
----
bool TEST_CLASS_OK::Method(int nArg) // Noncompliant
{
return true;
}{code}
----
== Compliant Solution
----
//-------------------------------------------------------------------------
//! @brief Method
//-------------------------------------------------------------------------
bool TEST_CLASS_OK::Method(int nArg)
{
return true;
}
----