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

JavaPMDBear: Use dependency_management #1667

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

Conversation

Techievena
Copy link
Member

Fetch pmd and bash using MavenRequirement and DistributionRequirement
respectively

Closes #1662

For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    individually.
    It is not sufficient to have "fixup commits" on your PR,
    our bot will still report the issues for the previous commit.) You will
    likely receive a lot of bot comments and build failures if coala does not
    pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

Fetch pmd and bash using MavenRequirement and DistributionRequirement
respectively

Closes coala#1662
@@ -17,22 +17,14 @@ class JavaPMDBear:
"""

LANGUAGES = {'Java'}
REQUIREMENTS = {MavenRequirement('net.sourceforge.pmd:pmd', '5.6.0'),
Copy link
Member

Choose a reason for hiding this comment

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

this would be a breaking change.
MavenRequirement needs to be an optional way to obtain pmd.

And I am pretty sure that the maven pmd doesnt install a pmd executable.

i.e. you need to test that old and new work, which is why this is listed as medium difficulty

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry my bad just overlooked this and thought it would merely be adding the requirement line. Will fix this shortly.

Copy link
Member

Choose a reason for hiding this comment

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

You forgot to import MavenRequirement.

@@ -17,22 +17,14 @@ class JavaPMDBear:
"""

LANGUAGES = {'Java'}
REQUIREMENTS = {MavenRequirement('net.sourceforge.pmd:pmd', '5.6.0'),
Copy link
Member

Choose a reason for hiding this comment

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

Our CI test is using v 5.4.1 https://github.com/coala/coala-bears/blob/master/.ci/deps.sh#L163

But if you already check that it's not breaking then OK (and maybe we need to update the CI script)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion @adhikasp will surely fix this. But a lot of work needs to be done first. 😃

@Techievena
Copy link
Member Author

Techievena commented May 2, 2017

@jayvdb This is what I think should be for the maven bears

  • Create an empty maven project if not present
  • Copy the file to be analyzed to the src directory of the project
  • Modify the pom.xml file to add the requisite plugins and rulesets according to user inputs
  • Fetch dependencies using MavenRequirement
  • Build the project
  • Wrap the results of the build to generate results for the bear

Please correct me. 😃

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

10 similar comments
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

JavaPMDBear: Add support for fetching PMD using Maven
5 participants