AmbiguousResolution
Priority: Medium (3)
There is multiple candidates for this type resolution. While generally this is not an error, this may indicate a bug.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.modelica.rule.AmbiguousResolutionRule
Use this rule by referencing it:
<rule ref="category/modelica/bestpractices.xml/AmbiguousResolution" />
ClassStartNameEqualsEndName
Priority: High (1)
Having a class starting with some name and some different name in its end clause is an error.
This rule is defined by the following XPath expression:
//ClassSpecifier/*[SimpleName[1]/@Image != SimpleName[last()]/@Image]
Use this rule by referencing it:
<rule ref="category/modelica/bestpractices.xml/ClassStartNameEqualsEndName" />
ConnectUsingNonConnector
Priority: Medium High (2)
Modelica specification requires passing connectors to the connect
clause,
while some implementations tolerate using it on plain variables, etc..
This rule is defined by the following Java class: net.sourceforge.pmd.lang.modelica.rule.ConnectUsingNonConnector
Use this rule by referencing it:
<rule ref="category/modelica/bestpractices.xml/ConnectUsingNonConnector" />