Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Update nopm.py #12

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Update nopm.py #12

wants to merge 15 commits into from

Conversation

aashiq075
Copy link

No description provided.

@sourcery-ai
Copy link

sourcery-ai bot commented Sep 17, 2020

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 5.31 ⭐ 5.31 ⭐ 0.00
Method Length 85.31 🙂 85.31 🙂 0.00
Working memory 7.84 🙂 7.84 🙂 0.00
Quality 74.21% 🙂 74.21% 🙂 0.00%
Other metrics Before After Change
Lines 452 452 0
Changed files Quality Before Quality After Quality Change
dnd.py 69.92% 🙂 69.92% 🙂 0.00%
nopm.py 81.37% ⭐ 81.37% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
dnd.py DoNotDisturbMod.watcher 42 ⛔ 418 ⛔ 27 ⛔ 7.48% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
nopm.py AntiPMMod.watcher 22 😞 206 ⛔ 18 ⛔ 27.83% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
dnd.py DoNotDisturbMod.pmlimitcmd 20 😞 243 ⛔ 14 😞 31.13% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
dnd.py DoNotDisturbMod.afknopmcmd 11 🙂 143 😞 9 🙂 55.12% 🙂 Try splitting into smaller methods
dnd.py DoNotDisturbMod.afknotifcmd 11 🙂 143 😞 9 🙂 55.12% 🙂 Try splitting into smaller methods

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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant