We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DeletePrefix and DeleteSuffix cops currently only detect gsub/gsub! String methods. Should also detect and correct sub/sub! methods (https://ruby-doc.org/core-2.5.0/String.html#method-i-sub).
DeletePrefix
DeleteSuffix
gsub/gsub!
sub/sub!
Like:
"FooController".sub(/Controller$/) => "FooController".delete_suffix("Controller")
The text was updated successfully, but these errors were encountered:
[Fix rubocop#115] DeletePrefix and DeleteSuffix cops detects sub/sub!…
d1933cc
… String methods
ea2e077
Merge pull request #116 from fatkodima/delete_suffix_prefix-sub-method
aef2416
[Fix #115] DeletePrefix and DeleteSuffix cops detects sub/sub! String methods
Successfully merging a pull request may close this issue.
DeletePrefix
andDeleteSuffix
cops currently only detectgsub/gsub!
String methods.Should also detect and correct
sub/sub!
methods (https://ruby-doc.org/core-2.5.0/String.html#method-i-sub).Like:
The text was updated successfully, but these errors were encountered: