Is there any Java Custom Rule in Sonar to check if a particular class is not being used in code

Hi Team,

We are from Code Quality COE team.

We need to know if there is any Java custom rules in Sonar for detecting/identifying a particular class is not being used in code?

Thanks,
Murali Sulam

Hi,

I’ve moved your post out of the Plugin Development category since your question doesn’t seem germane to it.

Detection of unused code within a class is relatively easy. Detection of unused code across classes is a lot harder. We’re not there yet.

 
HTH,
Ann