Open
Description
Hi there!
When recording deprecations as suggested on https://about.gitlab.com/blog/2021/02/03/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings/ we are seeing recordings like:
- DEPRECATION WARNING: /Users/sobrinho/Developer/my-app/models/concerns/logable.rb:36: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
But when running on CI, we have:
+ DEPRECATION WARNING: /app/app/models/concerns/logable.rb:36: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Which leads to a DeprecationToolkit::Behaviors::DeprecationMismatch
failure.
I'm currently fixing those with a dirty sed:
find spec/deprecation -type f | xargs gsed -i 's/.Users.sobrinho.Developer.my-app./\/app\//g'
Does it worth to have a way of replacing paths/values from deprecations or at least mention how on README?
Metadata
Metadata
Assignees
Labels
No labels