All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.jqassistant-rules.findbugs.xml Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
<jqa:jqassistant-rules xmlns:jqa="http://www.buschmais.com/jqassistant/core/analysis/rules/schema/v1.0">

    <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