META-INF.jqassistant-rules.findbugs.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jqassistant.plugin.findbugs Show documentation
Show all versions of jqassistant.plugin.findbugs Show documentation
Some jQAssistant plugins sponsored by Kontext E
The newest version!
<jqa:jqassistant-rules xmlns:jqa="http://www.buschmais.com/jqassistant/core/analysis/rules/schema/v1.0"> <concept id="findbugs:ConnectBugInstanceToType"> <description>Creates a relationship HAS_FINDBUGS_BUGINSTANCE between Type labeled nodes and BugInstance labeled nodes with same FQN.</description> <cypher><![CDATA[ MATCH (f:FindBugs:BugInstance), (t:Type) WHERE f.className = t.fqn MERGE (t)-[:HAS_FINDBUGS_BUGINSTANCE]->(f) RETURN t.fqn; ]]></cypher> </concept> <concept id="findbugs:ClassHasBugs"> <description>Creates a relationship HAS_BUG between CLASS labeled nodes and BUGINSTANCE labeled nodes with same FQN.</description> <cypher><![CDATA[ MATCH (c:Class), (s:SourceLine)--(b:BugInstance) WHERE c.fqn = s.fqn CREATE UNIQUE (c)-[:HAS_BUG]->(b) RETURN count(c) ]]></cypher> </concept> <constraint id="metric:Top10BugsPerClass"> <requiresConcept refId="findbugs:ClassHasBugs"/> <description>Returns the top 10 classes regarding containing number of FindBugs errors</description> <cypher><![CDATA[ MATCH (c)-[:HAS_BUG]->(b) RETURN c.fqn, count(c) AS BugCount ORDER BY BugCount DESC LIMIT 10; ]]></cypher> </constraint> </jqa:jqassistant-rules>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy