Details
-
Type:
Code Smell Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:
-
Message:Rename this type to match the regular expression: ${format}.
-
Highlighting:
-
List of parameters:
-
Default Severity:Info
-
Targeted languages:XML
-
Irrelevant for Languages:ABAP, C#, C, C++, Cobol, CSS, Flex, HTML, Java, JavaScript, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Swift, VB.Net, VB6
-
Remediation Function:Constant/Issue
-
Constant Cost:5min
-
Analysis Scope:Main Sources, Test Sources
Description
Sharing naming conventions allows teams to collaborate efficiently. This rule checks that type names match a provided regular expression.
Noncompliant Code Example
With the default regular expression:
<xs:complexType name="fruit"> <!-- Noncompliant -->
...
</xs:complexType>
Compliant Solution
<xs:complexType name="fruitType">
...
</xs:complexType>