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

Add support to checkstyle #34

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

timnew
Copy link
Contributor

@timnew timnew commented Sep 13, 2018

Add checkstyle support for KtLint

Copy link
Contributor

@tessereth tessereth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not the first person to suggest adding checkstyle support so I'm down for adding it. Thanks for implementing it!

Can you update the readme as well? Also the build is failing due to rubocop.

severity = error.attribute('severity').value
source = error.attribute('source').value
line_num = error.attribute('line').value
location = "#{file_name}:#{line_num}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add the column here as well?

Failure::Structured.new(
summary: "[#{severity}] #{source} @ #{location}",
message: message,
details: location
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

details is optional and it doesn't really make much sense to include information already in the summary. I'd also reorder the summary to put the location first and maybe push the source into the accordion given it's probably the least interesting information. How does this look to you?

Failure::Structured.new(
  summary: "[#{severity}] #{location}: #{message}"
  details: source
)

@tessereth tessereth merged commit 95ef5a6 into bugcrowd:master Sep 26, 2018
tessereth pushed a commit that referenced this pull request Sep 26, 2018
Add support for checkstyle

This is #34 just with some minor tweaks
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.

2 participants