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

Add support to ignore specific file paths from Prosopite scans #81

Open
sunnybogawat opened this issue Jul 17, 2024 · 0 comments
Open

Comments

@sunnybogawat
Copy link

Hi,

I am currently using the Prosopite gem in my Rails application and it's working great for detecting N+1 queries. However, I have a use case where I need to exclude specific file paths from being scanned by Prosopite.

Feature Request:

Add a configuration option to ignore specific file paths from Prosopite scans.
Use Case:

In my application, I have some auto-generated files or third-party libraries or any specific models or controllers that I do not want to include in the Prosopite scans. Having the ability to exclude these paths would help in avoiding false positives and unnecessary scans. The current option to use query regex is cumbersome

Proposed Solution:

Provide a method to specify paths or patterns to ignore, similar to:

Prosopite.ignore_paths = [/\/path_to_ignore/, /\/another_path_to_ignore/]

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

1 participant