prosopite icon indicating copy to clipboard operation
prosopite copied to clipboard

Add support to ignore specific file paths from Prosopite scans

Open sunnybogawat opened this issue 7 months ago • 0 comments

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/]

sunnybogawat avatar Jul 17 '24 13:07 sunnybogawat