Skip to content

address rubocop offenses: #2126

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

Merged
merged 1 commit into from
May 14, 2019
Merged

Conversation

ignatiusreza
Copy link
Contributor

@ignatiusreza ignatiusreza commented May 13, 2019

  • fix warnings for wrong namespaces
  • fix safe navigation offense
  • turn off frozen string literal cop

rubocop released new version, which break our CI..

PS: let me know if I should open this against master instead..

- fix warnings for wrong namespaces
- fix safe navigation offense
- turn off frozen string literal cop
@@ -22,7 +22,7 @@ module MailerExampleGroup
included do
include ::Rails.application.routes.url_helpers
options = ::Rails.configuration.action_mailer.default_url_options
options.each { |key, value| default_url_options[key] = value } if options
options&.each { |key, value| default_url_options[key] = value }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What versions of Ruby does that operator support?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>= 2.3.. v4 will drop support for ruby below 2.3, so using lonely operator should be safe..

Copy link
Member

@benoittgt benoittgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ignatiusreza. LGTM 🌮

@JonRowe
Copy link
Member

JonRowe commented May 14, 2019

Thanks :)

@ignatiusreza ignatiusreza deleted the chore/rubocop branch May 14, 2019 11:35
@benoittgt
Copy link
Member

Yeha! Thanks Jon and Ignatius

@benoittgt benoittgt mentioned this pull request May 14, 2019
5 tasks
benoittgt pushed a commit that referenced this pull request Aug 21, 2019
- fix warnings for wrong namespaces
- fix safe navigation offense
- turn off frozen string literal cop
benoittgt pushed a commit to benoittgt/rspec-rails that referenced this pull request Aug 24, 2019
- fix warnings for wrong namespaces
- fix safe navigation offense
- turn off frozen string literal cop
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

Successfully merging this pull request may close these issues.

3 participants