OreosLab / checkinpanel

一个主要运行在 𝐞𝐥𝐞𝐜𝐕𝟐𝐏 或 𝐪𝐢𝐧𝐠𝐥𝐨𝐧𝐠 等定时面板,同时支持系统运行环境的签到项目(环境:𝑷𝒚𝒕𝒉𝒐𝒏 3.8+ / 𝑵𝒐𝒅𝒆.𝒋𝒔 10+ / 𝑩𝒂𝒔𝒉 4+ / 𝑶𝒑𝒆𝒏𝑱𝑫𝑲8 / 𝑷𝒆𝒓𝒍5)
https://oreos.ml/checkinpanel/2021-10-01-Checkinpanel.html
MIT License
1.41k stars 362 forks source link

Update ck_mimotion.py #174

Closed OwnerCM closed 1 year ago

OwnerCM commented 1 year ago

兼容小米运动邮箱和手机账户

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.40 ⭐ 5.58 ⭐ 0.18 👎
Method Length 71.12 🙂 71.25 🙂 0.13 👎
Working memory 10.44 😞 10.38 😞 -0.06 👍
Quality 58.52% 🙂 58.37% 🙂 -0.15% 👎
Other metrics Before After Change
Lines 127 130 3
Changed files Quality Before Quality After Quality Change
ck_mimotion.py 58.52% 🙂 58.37% 🙂 -0.15% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
ck_mimotion.py MiMotion.main 10 🙂 253 ⛔ 15 😞 37.54% 😞 Try splitting into smaller methods. Extract out complex expressions
ck_mimotion.py MiMotion.login 3 ⭐ 165 😞 8 🙂 62.68% 🙂 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!