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.2 #445

Closed ShahriyarR closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 7.08 ⭐ 6.61 ⭐ -0.47 👍
Method Length 68.51 🙂 64.22 🙂 -4.29 👍
Working memory 16.79 ⛔ 15.85 ⛔ -0.94 👍
Quality 61.73% 🙂 63.28% 🙂 1.55% 👍
Other metrics Before After Change
Lines 1171 1319 148
Changed files Quality Before Quality After Quality Change
docs/conf.py 70.65% 🙂 70.65% 🙂 0.00%
mysql_autoxtrabackup/autoxtrabackup.py 42.68% 😞 42.68% 😞 0.00%
mysql_autoxtrabackup/backup_backup/backup_builder.py 59.35% 🙂 59.35% 🙂 0.00%
mysql_autoxtrabackup/backup_backup/backuper.py 63.03% 🙂 62.33% 🙂 -0.70% 👎
mysql_autoxtrabackup/utils/helpers.py 81.95% ⭐ 81.06% ⭐ -0.89% 👎
mysql_autoxtrabackup/utils/version.py 100.00% ⭐ 100.00% ⭐ 0.00%
tests/conftest.py 100.00% ⭐ 98.67% ⭐ -1.33% 👎
tests/test_backup.py 89.99% ⭐ 85.19% ⭐ -4.80% 👎

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 26 😞 587 ⛔ 66 ⛔ 11.79% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/backup_backup/backuper.py Backup.all_backup 16 🙂 165 😞 12 😞 42.90% 😞 Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/backup_backup/backup_builder.py BackupBuilderChecker.extract_decrypt_from_stream_backup 9 🙂 155 😞 16 ⛔ 44.62% 😞 Try splitting into smaller methods. Extract out complex expressions
mysql_autoxtrabackup/backup_backup/backup_builder.py BackupBuilderChecker.general_command_builder 12 🙂 199 😞 8 🙂 51.24% 🙂 Try splitting into smaller methods
mysql_autoxtrabackup/backup_backup/backuper.py Backup.show_tags 3 ⭐ 101 🙂 19 ⛔ 54.26% 🙂 Extract out complex expressions

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!

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