lgc-NB2Dev / nonebot-plugin-bawiki

A nonebot2 plugin for Blue Archive.
MIT License
81 stars 6 forks source link

Sourcery refactored master branch #6

Closed sourcery-ai[bot] closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

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

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 0.04%.

Quality metrics Before After Change
Complexity 6.12 ⭐ 6.12 ⭐ 0.00
Method Length 57.57 ⭐ 57.39 ⭐ -0.18 👍
Working memory 6.67 🙂 6.67 🙂 0.00
Quality 71.37% 🙂 71.41% 🙂 0.04% 👍
Other metrics Before After Change
Lines 269 269 0
Changed files Quality Before Quality After Quality Change
nonebot_plugin_bawiki/main.py 69.55% 🙂 69.62% 🙂 0.07% 👍
nonebot_plugin_bawiki/data_gamekee.py 73.92% 🙂 73.91% 🙂 -0.01% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
nonebot_plugin_bawiki/main.py _ 14 🙂 189 😞 12 😞 42.41% 😞 Try splitting into smaller methods. Extract out complex expressions
nonebot_plugin_bawiki/data_gamekee.py get_calender_page 8 ⭐ 164 😞 9 🙂 55.71% 🙂 Try splitting into smaller methods
nonebot_plugin_bawiki/main.py _ 5 ⭐ 136 😞 5 ⭐ 71.15% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

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!