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 add port from labels #854

Merged
merged 2 commits into from Nov 12, 2022
Merged

Fix add port from labels #854

merged 2 commits into from Nov 12, 2022

Conversation

joamatab
Copy link
Contributor

fix import ports from siepic pins

@joamatab joamatab merged commit 30c741c into master Nov 12, 2022
@joamatab joamatab deleted the fix_add_port_from_labels branch November 12, 2022 18:29
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 12, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 25.20 😞 24.01 😞 -1.19 👍
Method Length 109.73 🙂 110.03 🙂 0.30 👎
Working memory 16.23 ⛔ 15.85 ⛔ -0.38 👍
Quality 42.31% 😞 43.65% 😞 1.34% 👍
Other metrics Before After Change
Lines 1005 1038 33
Changed files Quality Before Quality After Quality Change
gdsfactory/add_pins.py 61.50% 🙂 61.39% 🙂 -0.11% 👎
gdsfactory/add_ports.py 14.44% ⛔ 14.41% ⛔ -0.03% 👎
gdsfactory/tests/test_add_ports.py 93.14% ⭐ 85.55% ⭐ -7.59% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/add_ports.py add_ports_from_markers_center 87 ⛔ 562 ⛔ 28 ⛔ 1.82% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/add_ports.py add_ports_from_labels 31 😞 248 ⛔ 21 ⛔ 18.17% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/add_ports.py add_ports_from_siepic_pins 18 🙂 276 ⛔ 17 ⛔ 27.67% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/add_pins.py add_pin_rectangle_double 1 ⭐ 325 ⛔ 18 ⛔ 40.62% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/add_ports.py add_ports_from_markers_square 8 ⭐ 160 😞 18 ⛔ 43.19% 😞 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 12, 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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

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