charkost / prosopite

:mag: Rails N+1 queries auto-detection with zero false positives / false negatives
Apache License 2.0
1.53k stars 46 forks source link

Allow regexs on allow_stack_paths. #39

Closed rjurado01 closed 2 years ago

rjurado01 commented 2 years ago

I would like to be able to ignore path by regex.

Example, If I have this:

app/services/users/massive_invitation_service.rb:25:in `run'

I want to avoid line number (it could be change easliy in the furure) and use only file + method name:

'app/services/users/massive_invitation_service.rb:25:in `run '.match?(/massive_invitation_service\.rb.*run/)
charkost commented 2 years ago

This would be useful, thanks! Would you like to update the relevant README section as well?

charkost commented 2 years ago

A test would be helpful as well.

rjurado01 commented 2 years ago

This would be useful, thanks! Would you like to update the relevant README section as well?

Yes I will update README and add new test.

rjurado01 commented 2 years ago

You already got it ;)

charkost commented 2 years ago

Awesome! Thank you