[modelica] Add integration smoke test
This commit is contained in:
@ -22,7 +22,8 @@ public class AllRulesIT extends AbstractBinaryDistributionTest {
|
||||
@Parameters
|
||||
public static Iterable<String> languagesToTest() {
|
||||
// note: scala and wsdl have no rules
|
||||
return Arrays.asList("java", "apex", "javascript", "jsp", "plsql", "pom", "visualforce", "velocitytemplate", "xml", "xsl");
|
||||
return Arrays.asList("java", "apex", "javascript", "jsp", "modelica",
|
||||
"plsql", "pom", "visualforce", "velocitytemplate", "xml", "xsl");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
18
pmd-dist/src/test/resources/rulesets/all-modelica.xml
Normal file
18
pmd-dist/src/test/resources/rulesets/all-modelica.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<ruleset name="All Modelica Rules"
|
||||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
|
||||
<description>Every Modelica Rule in PMD</description>
|
||||
|
||||
<rule ref="category/modelica/bestpractices.xml" />
|
||||
<!-- <rule ref="category/modelica/codestyle.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/design.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/documentation.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/errorprone.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/multithreading.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/performance.xml" /> -->
|
||||
<!-- <rule ref="category/modelica/security.xml" /> -->
|
||||
|
||||
</ruleset>
|
@ -0,0 +1,17 @@
|
||||
package Test
|
||||
package Inc
|
||||
model X
|
||||
end X;
|
||||
model Y
|
||||
end Y;
|
||||
end Inc;
|
||||
model A
|
||||
model Y
|
||||
end Y;
|
||||
end A;
|
||||
model B
|
||||
extends A;
|
||||
import Inc.*;
|
||||
X x;
|
||||
end B;
|
||||
end OtherName;
|
Reference in New Issue
Block a user