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

get_polygons is backwards compatible by default #846

Merged
merged 1 commit into from Nov 11, 2022
Merged

Conversation

joamatab
Copy link
Contributor

fixes #844

@joamatab joamatab merged commit efe98e9 into master Nov 11, 2022
@joamatab joamatab deleted the fix_get_polygons branch November 11, 2022 15:34
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 11, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 7.00 ⭐ 7.30 ⭐ 0.30 👎
Method Length 75.99 🙂 76.34 🙂 0.35 👎
Working memory 8.56 🙂 8.58 🙂 0.02 👎
Quality 64.47% 🙂 64.03% 🙂 -0.44% 👎
Other metrics Before After Change
Lines 4535 4583 48
Changed files Quality Before Quality After Quality Change
gdsfactory/add_keepout.py 76.15% ⭐ 75.89% ⭐ -0.26% 👎
gdsfactory/component.py 69.18% 🙂 68.25% 🙂 -0.93% 👎
gdsfactory/component_reference.py 71.62% 🙂 70.61% 🙂 -1.01% 👎
gdsfactory/fill.py 52.65% 🙂 52.64% 🙂 -0.01% 👎
gdsfactory/quickplotter.py 57.03% 🙂 57.00% 🙂 -0.03% 👎
gdsfactory/routing/get_route_astar.py 36.94% 😞 36.46% 😞 -0.48% 👎
gdsfactory/tests/test_shear_face_path.py 76.83% ⭐ 77.49% ⭐ 0.66% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/quickplotter.py quickplot 51 ⛔ 627 ⛔ 20 ⛔ 7.25% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/routing/get_route_astar.py get_route_astar 37 ⛔ 490 ⛔ 19 ⛔ 11.86% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/component.py Component.write_gds 15 🙂 327 ⛔ 16 ⛔ 29.36% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/fill.py fill_rectangle 13 🙂 380 ⛔ 15 😞 31.09% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/component_reference.py ComponentReference.move 15 🙂 280 ⛔ 15 😞 31.99% 😞 Try splitting into smaller methods. 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!

@sonarcloud
Copy link

sonarcloud bot commented Nov 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@joamatab joamatab mentioned this pull request Nov 11, 2022
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.

component.get_polygons() no longer returns vertices
1 participant