MySQL-AutoXtraBackup icon indicating copy to clipboard operation
MySQL-AutoXtraBackup copied to clipboard

Release v2.0.3

Open ShahriyarR opened this issue 4 years ago β€’ 2 comments

ShahriyarR avatar Oct 03 '21 16:10 ShahriyarR

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:

  • ⭐ 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!

Help us improve this quality report!

sourcery-ai[bot] avatar Oct 03 '21 16:10 sourcery-ai[bot]

Remaining is to update doc

ShahriyarR avatar Oct 03 '21 16:10 ShahriyarR