rohaquinlop / complexipy

An extremely fast Python library to calculate the cognitive complexity of Python files, written in Rust.
https://rohaquinlop.github.io/complexipy/
MIT License
135 stars 7 forks source link

fit(report|docs) Add -d params to be able to show only files with complexity above the max_complexity #14

Closed korneevm closed 8 months ago

korneevm commented 8 months ago

I've tried to use complexipy on some of my work projects and run into an issue, that when the project has many files it's quite hard to spot files with complexity above the threshold.

So I propose adding another command line option to switch between showing all the files and only "red" once. That also might be a nice option for using complexipy in pre-commit or ci/cd pipeline.

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

korneevm commented 8 months ago

There is a 403 error from github in deploy-docs failed pipeline but I'm not sure if I can do something about it

rohaquinlop commented 8 months ago

@korneevm That's a nice idea!!! I think that the error is because gh is trying to deploy, but you don't have the permissions to do that.