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 pmd xml driver #117

Merged
merged 4 commits into from Jun 30, 2019
Merged

add pmd xml driver #117

merged 4 commits into from Jun 30, 2019

Conversation

bit-ranger
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jun 27, 2019

Coverage Status

Coverage increased (+0.02%) to 99.166% when pulling 86e3c11 on bit-ranger:master into f38b0fb on Bachmann1234:master.

Method checks if the provided tool is installed.
Returns: boolean False: As findbugs analyses bytecode, it would be hard to run it from outside the build framework.
"""
return True
Copy link
Owner

Choose a reason for hiding this comment

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

I think you want return False here.

Diff-cover is unlikely to be running findbugs, instead it will be parsing a report provided by the user.

If you intend to have diff-cover run findbugs this PR is going to need a bit more work to actually be able to run it.

for report in reports:
xml_document = cElementTree.fromstring("".join(report))
files = xml_document.findall(".//file")
for file in files:
Copy link
Owner

Choose a reason for hiding this comment

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

Please rename the file variable here.

File is a type in python so using it as a variable name can be confusing.

>>> file
<type 'file'>

@Bachmann1234
Copy link
Owner

Thanks for the PR! This is a good start! I left some notes but the bug thing is I cannot merge this unless it has some tests to cover the code being added here

@bit-ranger
Copy link
Contributor Author

code updated

@Bachmann1234
Copy link
Owner

Thanks for adding tests. I'll give this a final review and try and get it released by tomorrow

@Bachmann1234 Bachmann1234 merged commit 5f5548f into Bachmann1234:master Jun 30, 2019
@Bachmann1234
Copy link
Owner

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

3 participants