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

Override #13

Merged
merged 2 commits into from
Aug 4, 2021
Merged

Override #13

merged 2 commits into from
Aug 4, 2021

Conversation

tfcollins
Copy link
Owner

Add override flag for scanning

Signed-off-by: Travis F. Collins <[email protected]>
Signed-off-by: Travis F. Collins <[email protected]>
@tfcollins tfcollins merged commit af49c29 into master Aug 4, 2021
@tfcollins tfcollins deleted the override branch August 4, 2021 23:56
@sourcery-ai
Copy link

sourcery-ai bot commented Aug 4, 2021

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 27.04 😞 26.89 😞 -0.15 👍
Method Length 66.77 🙂 68.62 🙂 1.85 👎
Working memory 9.94 😞 9.93 😞 -0.01 👍
Quality 51.69% 🙂 51.36% 🙂 -0.33% 👎
Other metrics Before After Change
Lines 277 287 10
Changed files Quality Before Quality After Quality Change
setup.py 85.20% ⭐ 85.20% ⭐ 0.00%
pytest_libiio/plugin.py 50.69% 🙂 50.36% 🙂 -0.33% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
pytest_libiio/plugin.py lookup_hw_from_map 68 ⛔ 180 😞 15 😞 19.93% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
pytest_libiio/plugin.py _contexts 18 🙂 178 😞 10 😞 43.77% 😞 Try splitting into smaller methods. Extract out complex expressions
pytest_libiio/plugin.py find_contexts 9 🙂 127 😞 11 😞 54.84% 🙂 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!

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