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

51016b #475

Merged
merged 2 commits into from
Jun 22, 2022
Merged

51016b #475

merged 2 commits into from
Jun 22, 2022

Conversation

joamatab
Copy link
Contributor

rename triangle to triangles, to avoid conflict names with triangle module

@joamatab joamatab merged commit ccad65d into master Jun 22, 2022
@joamatab joamatab deleted the 51016b branch June 22, 2022 16:16
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jun 22, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.65 ⭐ 5.60 ⭐ -0.05 👍
Method Length 151.69 😞 152.08 😞 0.39 👎
Working memory 23.16 ⛔ 22.92 ⛔ -0.24 👍
Quality 42.45% 😞 43.07% 😞 0.62% 👍
Other metrics Before After Change
Lines 963 966 3
Changed files Quality Before Quality After Quality Change
gdsfactory/components/init.py 31.00% 😞 31.00% 😞 0.00%
gdsfactory/components/dicing_lane.py 76.69% ⭐ 76.69% ⭐ 0.00%
gdsfactory/components/grating_coupler_elliptical_arbitrary.py 36.05% 😞 36.23% 😞 0.18% 👍
gdsfactory/components/straight_heater_meander.py 31.88% 😞 34.03% 😞 2.15% 👍
gdsfactory/export/to_3d.py 49.63% 😞 49.63% 😞 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/components/straight_heater_meander.py straight_heater_meander 7 ⭐ 505 ⛔ 28 ⛔ 28.10% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/components/grating_coupler_elliptical_arbitrary.py grating_coupler_elliptical_arbitrary 5 ⭐ 403 ⛔ 33 ⛔ 30.20% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/export/to_3d.py to_3d 12 🙂 159 😞 15 😞 42.61% 😞 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 Jun 22, 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

@joamatab joamatab mentioned this pull request Jun 22, 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.

1 participant