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

Updating Checkstyle reporter to provide error codes #1088

Merged
merged 1 commit into from
May 21, 2013

Conversation

jklein
Copy link

@jklein jklein commented May 20, 2013

There are two goals in this pull request:

  1. When the --verbose option is supplied, add the error code to the checkstyle message attribute, so this output matches the default reporter.
  2. Make the source attribute of the checkstyle output more useful. In it's current incarnation, it's simply a less useful version of the message attribute, and Jenkins (among other tools) break when they try to use it for categorization. In this change we simply use result.error.code for the source, which makes for easy categorization

I would much rather use the name of the actual JSHint option that is causing the error, but this information is not provided to the reporter, so it would take a large amount of refactoring to get that to work. Perhaps we can write a mapping from error code to option, and leverage that to create the source in the future.

…en --verbose is specified, and changing the source to just provide the error code. The old way of using the raw message was useless, and breaks the categorization in Jenkins
valueof added a commit that referenced this pull request May 21, 2013
Updating Checkstyle reporter to provide error codes
@valueof valueof merged commit 050cf19 into jshint:master May 21, 2013
@valueof
Copy link
Member

valueof commented May 21, 2013

Thanks!

jugglinmike pushed a commit to jugglinmike/jshint that referenced this pull request Oct 21, 2014
Updating Checkstyle reporter to provide error codes
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.

None yet

2 participants