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

ClangFunctionDifferenceBear.py: Fix function addresses in optional se… #2256

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

Conversation

vibhanshuvaibhav
Copy link

@vibhanshuvaibhav vibhanshuvaibhav commented Jan 25, 2018

Removes function addresses in optional
settings of the bear's description.

Fixes #559

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!

@gitmate-bot
Copy link
Collaborator

Comment on 8e53ede.

Shortlog of the HEAD commit contains 76 character(s). This is 26 character(s) longer than the limit (76 > 50).

Origin: GitCommitBear, Section: commit.

Copy link
Contributor

@kriti21 kriti21 left a comment

Choose a reason for hiding this comment

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

Your shortlog is too long. Please follow http://api.coala.io/en/latest/Developers/Writing_Good_Commits.html for writing commit messages.

Removes function addresses under optional
settings in the bear's description.

Fixes coala#559
Copy link
Contributor

@kriti21 kriti21 left a comment

Choose a reason for hiding this comment

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

Your commit is failing on coverage issues. You need to add tests. Consider reading the documentation for writing tests and also run pytest --cov locally to see the test coverage and make sure you have 100% on your code :)

@@ -87,7 +87,7 @@ class ClangFunctionDifferenceBear(GlobalBear):
REQUIREMENTS = ClangBear.REQUIREMENTS | {PipRequirement('munkres3', '1.0')}

def run(self,
counting_conditions: counting_condition_dict=default_cc_dict,
counting_conditions: default_cc_dict=counting_condition_dict,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain why have you changed this and you have tests failing due to this change ;)

Copy link
Author

Choose a reason for hiding this comment

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

So far the only explanation I have is that the default_cc_dict is generated by the counting_condition_dict. So, I made the change locally and the function values didn't appear then.

Copy link
Contributor

Choose a reason for hiding this comment

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

This might need some corresponding changes in the tests as well. Could be the reason for failing tests.

Copy link
Member

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

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

This is not the solution.

The type and default of this method arg are correct, and changing them will break stuff.

however, the default of this arg isnt able to be printed & read by a user.

This probably needs to be improved in http://github.com/coala/coala

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.

ClangFunctionDifferenceBear's options show function addresses
5 participants