drf-api-tracking icon indicating copy to clipboard operation
drf-api-tracking copied to clipboard

Added user agent

Open null-none opened this issue 3 years ago • 1 comments

null-none avatar Jun 26 '22 21:06 null-none

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 6.24 ⭐ 6.24 ⭐ 0.00
Method Length 38.95 ⭐ 39.27 ⭐ 0.32 👎
Working memory 6.60 🙂 6.60 🙂 0.00
Quality 74.86% 🙂 74.76% 🙂 -0.10% 👎
Other metrics Before After Change
Lines 260 261 1
Changed files Quality Before Quality After Quality Change
rest_framework_tracking/admin.py 85.35% ⭐ 85.35% ⭐ 0.00%
rest_framework_tracking/base_mixins.py 72.27% 🙂 72.15% 🙂 -0.12% 👎
rest_framework_tracking/base_models.py 99.67% ⭐ 99.67% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
rest_framework_tracking/base_mixins.py BaseLoggingMixin.finalize_response 15 🙂 192 😞 9 🙂 47.02% 😞 Try splitting into smaller methods
rest_framework_tracking/admin.py APIRequestLogAdmin.changelist_view 1 ⭐ 46 ⭐ 10 😞 76.13% ⭐ Extract out complex expressions
rest_framework_tracking/admin.py APIRequestLogAdmin.chart_data 0 ⭐ 33 ⭐ 10 😞 79.25% ⭐ Extract out complex expressions

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 Jun 26 '22 21:06 sourcery-ai[bot]