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

Ignore files and directories #59

Open
juansedo opened this issue Jan 13, 2025 · 1 comment
Open

Ignore files and directories #59

juansedo opened this issue Jan 13, 2025 · 1 comment

Comments

@juansedo
Copy link

As a user, I want a way to ignore files and directories from the cognitive complexity analysis to exclude some custom fixes for libraries.

Issue can be solved using a filter before scanning the complexity (https://github.com/rohaquinlop/complexipy/blob/main/src/cognitive_complexity/mod.rs#L150-L160).

Ignored files and directories can be discovered with:

  • CLI approach with --ignore-paths= flag.
  • Read a file like a .gitignore to ignore paths.
@rohaquinlop
Copy link
Owner

Hey @juansedo I think that the .gitignore file is already being considered during the execution, isn't it working?

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

No branches or pull requests

2 participants