Sonarqube Version: Data Center Edition - Version 9.6 (build 59041)
Below is issue message on sonarqube, there is not issue in project, everything work fine. Location given here /agent/_work/2/s/ is location on host where this build is running.
This file “MyJavaFile.java” should be located in “com/vipin” directory, not in “/agent/_work/2/s/src/main/java/com/vipin”.
Get permalink
Package declaration should match source file directoryjava:S1598
Any idea what is wrong here? How do I fix this issue.
My code base was messed up, intellij doesn’t show directory renaming nicely in changes. So actually I had to change directory name and commit to fix it. It was showing correct name when I deleted project and did git pull again it showed wrong package name which then I fixed. Overall you can close the issue now. Thanks.