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 commandscope settings (Sourcery refactored) #11

Closed
wants to merge 6 commits into from

Conversation

sourcery-ai[bot]
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Jan 28, 2022

Pull Request #10 refactored by Sourcery.

Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it.

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to
    the original Pull Request

    Incorporate changes via command line
    git fetch https://github.com/Honkertonken/Honkertonken-Cogs pull/10/head
    git merge --ff-only FETCH_HEAD
    git push

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Help us improve this pull request!

@lgtm-com
Copy link

lgtm-com bot commented Jan 28, 2022

This pull request introduces 1 alert and fixes 1 when merging d4f39e5 into edf1124 - view on LGTM.com

new alerts:

  • 1 for Syntax error

fixed alerts:

  • 1 for Except block handles 'BaseException'

@sourcery-ai sourcery-ai bot force-pushed the sourcery/pull-10 branch 3 times, most recently from ed3654c to b4ff620 Compare January 28, 2022 03:13
@sourcery-ai
Copy link
Contributor Author

sourcery-ai bot commented Jan 28, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 1.51%.

Quality metrics Before After Change
Complexity 1.52 ⭐ 1.80 ⭐ 0.28 👎
Method Length 58.40 ⭐ 59.12 ⭐ 0.72 👎
Working memory 7.70 🙂 8.09 🙂 0.39 👎
Quality 76.84% 75.33% -1.51% 👎
Other metrics Before After Change
Lines 196 222 26
Changed files Quality Before Quality After Quality Change
buttoninvite/button_invite.py 76.84% ⭐ 75.33% ⭐ -1.51% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
buttoninvite/button_invite.py ButtonInvite.invite 2 ⭐ 213 ⛔ 14 😞 48.86% 😞 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@sourcery-ai sourcery-ai bot closed this Jan 28, 2022
@sourcery-ai sourcery-ai bot deleted the sourcery/pull-10 branch January 28, 2022 03:30
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