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 #672: support doute parameter in 'siècle' template. Support 'litote' template #673

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

lasconic
Copy link
Collaborator

@lasconic lasconic commented Feb 4, 2021

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Feb 4, 2021

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 15.57 🙂 15.59 🙂 0.02 👎
Method Length 109.97 🙂 110.23 🙂 0.26 👎
Working memory 28.03 ⛔ 28.14 ⛔ 0.11 👎
Quality 53.76% 🙂 53.68% 🙂 -0.08% 👎
Other metrics Before After Change
Lines 1501 1504 3
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 57.49% 🙂 57.40% 🙂 -0.09% 👎

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 7d102a4 into BoboTiG:master Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Support 'doute' parameter in 'siècle' template
2 participants