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

feat: Introduce McCabe complexity check #1460

Merged
merged 2 commits into from
May 27, 2024

Conversation

dominik003
Copy link
Contributor

@dominik003 dominik003 commented Mar 26, 2024

This PR enables the McCabe cyclomatic complexity check for pylint. This forces us not to make extensive use of nesting within functions, but to outsource parts to separate functions. For now we use the default threshold value of 10.

Resolves #1380

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.35%. Comparing base (ff32d5f) to head (963909a).
Report is 161 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1460      +/-   ##
==========================================
+ Coverage   79.04%   79.35%   +0.30%     
==========================================
  Files         172      172              
  Lines        5766     6016     +250     
  Branches      665      724      +59     
==========================================
+ Hits         4558     4774     +216     
- Misses       1054     1079      +25     
- Partials      154      163       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@dominik003 dominik003 force-pushed the feat-add-mccabe-complexity-check branch from e0f83d8 to 819f841 Compare May 13, 2024 07:13
Copy link

github-actions bot commented May 13, 2024

A Storybook preview is available for commit a44d6b2.
View Storybook
View Chromatic build

@MoritzWeber0 MoritzWeber0 force-pushed the feat-add-mccabe-complexity-check branch from 819f841 to 7a4d9e8 Compare May 15, 2024 14:09
@MoritzWeber0 MoritzWeber0 force-pushed the feat-add-mccabe-complexity-check branch from 7a4d9e8 to 9468ce9 Compare May 21, 2024 14:27
Copy link

sonarcloud bot commented May 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@MoritzWeber0 MoritzWeber0 merged commit a6877d7 into main May 27, 2024
30 checks passed
@MoritzWeber0 MoritzWeber0 deleted the feat-add-mccabe-complexity-check branch May 27, 2024 13:03
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.

Introduce McCabe complexity check
2 participants