add example for ConstantName in xdoc, #1106
This commit is contained in:
parent
82c6366eda
commit
1ef7197d95
|
|
@ -293,6 +293,21 @@ class MyClass {
|
|||
</module>
|
||||
</source>
|
||||
</subsection>
|
||||
<subsection name="ConstantName">
|
||||
<p>
|
||||
Property <code>format</code> in module <code>ConstantName</code>
|
||||
is used to specify names to be allowed. The following configuration
|
||||
apart from names allowed by default allows <code>log</code> or
|
||||
<code>logger</code>:
|
||||
</p>
|
||||
|
||||
<source>
|
||||
<module name="ConstantName">
|
||||
<property name="format"
|
||||
value="^log(ger)?|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
|
||||
</module>
|
||||
</source>
|
||||
</subsection>
|
||||
|
||||
<subsection name="...">
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue