Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only include path if non-empty on codenarc filenames #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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