get Package Name from Issue instead of File Name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

get Package Name from Issue instead of File Name

iq45y8i
Hi , I am working on a pre-scanned project in Sonarqube.
I remember we can get the File name from the issue using component key, but is there any way to get the package name of a Java file ?
I see lot of files starting with main/ or src/main/ or src/java ...
its very difficult to isolate the package name.
Any suggestions rather than altering scan method ?