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

Feedforward #542

Merged
merged 4 commits into from
Dec 16, 2022
Merged

Feedforward #542

merged 4 commits into from
Dec 16, 2022

Conversation

amolenaar
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Dec 16, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 3.92 ⭐ 3.58 ⭐ -0.34 👍
Method Length 52.51 ⭐ 53.25 ⭐ 0.74 👎
Working memory 5.96 ⭐ 5.97 ⭐ 0.01 👎
Quality 73.25% 🙂 74.05% 🙂 0.80% 👍
Other metrics Before After Change
Lines 1111 1108 -3
Changed files Quality Before Quality After Quality Change
gaphas/guide.py 80.37% ⭐ 80.37% ⭐ 0.00%
gaphas/handlemove.py 76.72% ⭐ 76.33% ⭐ -0.39% 👎
gaphas/segment.py 60.59% 🙂 62.01% 🙂 1.42% 👍
gaphas/aspect/handlemove.py % % %
gaphas/painter/handlepainter.py 54.90% 🙂 66.74% 🙂 11.84% 👍
gaphas/tool/hover.py 89.27% ⭐ 78.69% ⭐ -10.58% 👎
gaphas/view/__init__.py % % %
gaphas/view/gtkview.py 76.42% ⭐ 76.55% ⭐ 0.13% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
gaphas/view/gtkview.py GtkView.update_back_buffer 15 🙂 235 ⛔ 10 😞 42.03% 😞 Try splitting into smaller methods. Extract out complex expressions
gaphas/segment.py LineSegment.merge_segment 9 🙂 190 😞 10 😞 50.40% 🙂 Try splitting into smaller methods. Extract out complex expressions
gaphas/segment.py LineSegment.split_segment 6 ⭐ 237 ⛔ 50.46% 🙂 Try splitting into smaller methods
gaphas/view/gtkview.py GtkView.__init__ 6 ⭐ 226 ⛔ 51.44% 🙂 Try splitting into smaller methods
gaphas/painter/handlepainter.py HandlePainter._draw_handles 11 🙂 128 😞 9 🙂 56.84% 🙂 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!

@amolenaar amolenaar merged commit c996f75 into main Dec 16, 2022
@amolenaar amolenaar deleted the feedforward branch December 16, 2022 21:16
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.

None yet

1 participant