Sonar Custom Rules active but not reported for a project

I have activated some custom rules from a custom plugin on a project.
From Eclipse sonar lint I see the rule reported but the same rule is not reported as issue when analyzed from jenkins after commit.
The build fails due to quality gate but for other non custom rules.

What can I check in order to get the rules reported in sonarqube ?

Env:
java17
Sonarqube 10.5.1

Hi!

Check that the rule is enabled on the quality profile of the project you want to analyze.

And check the log on the scanner side to see if your custom plugin is throwing any error.

Best regards.

Hi Antonio,
Yes I made sure to activate the rules of a profile and also made the profile default for the project.
Checked the logs and do not see errors.

The same custom rules project used to work correctly with Sonarqube 8.9.7 CE on Java 8.

Hi!

We cannot help if you don’t share more information of the problem with the community.

Try to enable debug on scanner side with -X and share your logs. You must see your custom rules plugin sensor logs if everything is fine.

If your custom rules are built on a Java plugin you should check the code and try to upgrade to the latest APIs. Version 8.9 is too old.

Best regards.