ShahriyarR / MySQL-AutoXtraBackup

MySQL-AutoXtraBackup commandline tool written in Python 3 based on Percona XtraBackup
https://autoxtrabackup.azepug.az/
MIT License
139 stars 79 forks source link

Release v2.0.3 #450

Open ShahriyarR opened 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 13.29 🙂 13.40 🙂 0.11 👎
Method Length 67.29 🙂 67.75 🙂 0.46 👎
Working memory 15.57 ⛔ 16.27 ⛔ 0.70 👎
Quality 56.34% 🙂 56.06% 🙂 -0.28% 👎
Other metrics Before After Change
Lines 609 634 25
Changed files Quality Before Quality After Quality Change
mysql_autoxtrabackup/autoxtrabackup.py 46.83% 😞 45.55% 😞 -1.28% 👎
mysql_autoxtrabackup/backup_backup/backup_archive.py 41.62% 😞 40.58% 😞 -1.04% 👎
mysql_autoxtrabackup/general_conf/generalops.py 79.13% ⭐ 81.02% ⭐ 1.89% 👍
mysql_autoxtrabackup/process_runner/errors.py 96.04% ⭐ 95.95% ⭐ -0.09% 👎
mysql_autoxtrabackup/utils/version.py 100.00% ⭐ 100.00% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
mysql_autoxtrabackup/autoxtrabackup.py all_procedure 27 😞 619 ⛔ 46 ⛔ 11.23% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/backup_backup/backup_archive.py BackupArchive.create_backup_archives 30 😞 256 ⛔ 11 😞 29.21% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/backup_backup/backup_archive.py BackupArchive.clean_old_archives 15 🙂 169 😞 12 😞 43.33% 😞 Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/general_conf/generalops.py GeneralClass.backup_archive_options 4 ⭐ 126 😞 7 🙂 68.28% 🙂 Try splitting into smaller methods
mysql_autoxtrabackup/general_conf/generalops.py GeneralClass.backup_options 0 ⭐ 126 😞 5 ⭐ 77.29% ⭐ 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!

ShahriyarR commented 2 years ago

Remaining is to update doc