Skip to content

Conversation

@nbruno
Copy link

@nbruno nbruno commented Dec 12, 2015

As a result of the fix for JENKINS-19260, an empty path gets appended to the filename of a codenarc file that was in the default package. This results in file paths that have two forward-slashes in them (e.g., source-dir//Test.groovy), ultimately causing the UI to not serve these files and show the violations within them.

This PR checks if the path is empty, and if it is, does not include it in the file path. Also, the test case for this condition has been updated properly.

@nbruno nbruno changed the title Only include path if non-empty to codenarc filename Only include path if non-empty on codenarc filenames Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant