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

Update choices.py #143

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Update choices.py #143

wants to merge 4 commits into from

Conversation

cyberndj
Copy link

Pull Request

Related Issue

New Behavior

...

Contrast to Current Behavior

...

Discussion: Benefits and Drawbacks

...

Changes to the Documentation

...

Proposed Release Note Entry

Adding IP protocol to choice fields.
...

Double Check

  • [x ] I have explained my PR according to the information in the comments
    or in a linked issue.
  • [x ] My PR targets the dev branch.

Hi, this is for issue #142 to add IP as a protocol field. Please let me know if anything needs changed.

@sourcery-ai
Copy link

sourcery-ai bot commented Mar 17, 2023

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 0.00 ⭐ 0.00 ⭐ 0.00
Method Length 144.00 😞 544.00 ⛔ 400.00 👎
Working memory 6.00 ⭐ 45.00 ⛔ 39.00 👎
Quality 72.65% 🙂 33.73% 😞 -38.92% 👎
Other metrics Before After Change
Lines 90 229 139
Changed files Quality Before Quality After Quality Change
netbox_acls/choices.py 72.65% 🙂 33.73% 😞 -38.92% 👎

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

File Function Complexity Length Working Memory Quality Recommendation

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!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

@sonarcloud
Copy link

sonarcloud bot commented Mar 22, 2023

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 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@cyberndj
Copy link
Author

cyberndj commented Mar 22, 2023

Howdy,
I also added choice fields for IP/TCP/ICMP to help kickstart #136. I don't know Github enough to split commits across PRs, so apologies for dogpiling this one.
Thanks!
-Jake

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