Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #632: [FR] Improve support of 'apocope' template #636

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

lasconic
Copy link
Collaborator

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 20, 2021

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 16.17 🙂 16.17 🙂 0.00
Method Length 113.03 🙂 112.97 🙂 -0.06 👍
Working memory 28.86 ⛔ 28.87 ⛔ 0.01 👎
Quality 52.83% 🙂 52.84% 🙂 0.01% 👍
Other metrics Before After Change
Lines 1445 1447 2
Changed files Quality Before Quality After Quality Change
wikidict/lang/fr/init.py 32.55% 😞 32.55% 😞 0.00%
wikidict/lang/fr/template_handlers.py 56.61% 🙂 56.62% 🙂 0.01% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
wikidict/lang/fr/template_handlers.py render_compose_de 53 ⛔ 492 ⛔ 15 😞 11.72% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/init.py last_template_handler 22 😞 210 ⛔ 18 ⛔ 27.55% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/template_handlers.py render_etyl 17 🙂 161 😞 10 😞 46.13% 😞 Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/template_handlers.py render_mot_valise 13 🙂 126 😞 10 😞 53.27% 🙂 Try splitting into smaller methods. Extract out complex expressions
wikidict/lang/fr/template_handlers.py render_cit_ref 10 🙂 169 😞 8 🙂 55.58% 🙂 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!

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

@BoboTiG BoboTiG merged commit 78e4ecc into BoboTiG:master Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Improve support of 'apocope' template
2 participants