How to create custom rules via the RHAMT?

Solution In Progress - Updated -

Issue

We are trying to use the RHAMT to analyse application code in preparation to for the move from EAP 6.4 to EAP 7.1.
How does one add custom rules to the tool?

For example,
I would like it flagged when a certain annotation is detected. Like below:

@DefaultBean
Class someClass{
}

or when a certain method is called

entity.getTransaction

With a custom message explaining the steps to correct this.

Environment

Red Hat JBoss Enterprise Application Platform 6.4.z. / 7.1.z

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content