kiwicom / the-zoo

πŸ’ A service registry for humans
MIT License
93 stars 6 forks source link

Backstage alpha 20 master #325

Closed batisteo closed 4 years ago

lgtm-com[bot] commented 4 years ago

This pull request introduces 15 alerts and fixes 20 when merging 1ac1458990d8243712698bced8223aa4d9f16d42 into 0096d10b8e9d1f9f5beb1325276c05edd540a467 - view on LGTM.com

new alerts:

fixed alerts:

lgtm-com[bot] commented 4 years ago

This pull request introduces 15 alerts and fixes 20 when merging 6f535bca49c5d62e06db3dd42e90dd0011d0fd81 into 0096d10b8e9d1f9f5beb1325276c05edd540a467 - view on LGTM.com

new alerts:

fixed alerts:

lgtm-com[bot] commented 4 years ago

This pull request introduces 15 alerts and fixes 20 when merging bfa39775c2bbf5c218d03df890d98f207e080d6b into 0096d10b8e9d1f9f5beb1325276c05edd540a467 - view on LGTM.com

new alerts:

fixed alerts:

ghost commented 4 years ago

DeepCode's analysis on #3629de found:

Description Example fixes
Unsanitized input flows from the request URL and is used to render an HTML page returned to the user in send. This may result in a Cross-Site Scripting attack (XSS). Occurrences: :wrench: Example fixes
The function defined here takes 1 parameter(s), but is called here with 3 argument(s). The extra arguments will be ignored. Occurrences: :wrench: Example fixes
The property highlight was previously set at highlight. Occurrences: :wrench: Example fixes

πŸ‘‰ View analysis in DeepCode’s Dashboard | Configure the bot

sourcery-ai[bot] commented 4 years ago

Sourcery Code Quality Report

βœ…  Merging this PR will increase code quality in the affected files by 4.11%.

Quality metrics Before After Change
Complexity 0.96 ⭐ 0.55 ⭐ -0.41 πŸ‘
Method Length 50.30 ⭐ 52.34 ⭐ 2.04 πŸ‘Ž
Working memory 7.02 πŸ™‚ 5.50 ⭐ -1.52 πŸ‘
Quality 84.57% ⭐ 88.68% ⭐ 4.11% πŸ‘
Other metrics Before After Change
Lines 2581 681 -1900
Changed files Quality Before Quality After Quality Change
zoo/api/query.py 75.76% ⭐ 85.25% ⭐ 9.49% πŸ‘
zoo/api/types.py 91.50% ⭐ 91.84% ⭐ 0.34% πŸ‘
zoo/auditing/admin.py 98.33% ⭐ 98.83% ⭐ 0.50% πŸ‘
zoo/base/settings.py 30.98% 😞 30.83% 😞 -0.15% πŸ‘Ž
zoo/base/urls.py 44.88% 😞 63.21% πŸ™‚ 18.33% πŸ‘
zoo/base/management/commands/fake.py 90.58% ⭐ 89.56% ⭐ -1.02% πŸ‘Ž
zoo/datacenters/models.py 90.52% ⭐ 88.83% ⭐ -1.69% πŸ‘Ž

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

File Function Complexity Length Working Memory Quality Recommendation
zoo/api/types.py Dependency.resolve_all_dependency_usages 1 ⭐ 92 πŸ™‚ 10 😞 69.12% πŸ™‚ Extract out complex expressions
zoo/api/types.py Service.from_db 0 40 ⭐ 11 😞 76.21% ⭐ Extract out complex expressions
zoo/api/types.py ActiveIncident.from_object 1 ⭐ 36 ⭐ 10 😞 77.76% ⭐ 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.

lgtm-com[bot] commented 4 years ago

This pull request introduces 9 alerts and fixes 20 when merging 3629dec649dd8c714634e2b7b2b420c546b16b34 into 748cb9adc52082ec9bacd9c8554bdffe9199e2fc - view on LGTM.com

new alerts:

fixed alerts: