Skip to content

Commit

Permalink
Enable Layout/SpaceAroundOperators cop
Browse files Browse the repository at this point in the history
Follow rails/rails#40436.

This PR enables `Layout/SpaceAroundOperators` cop.
  • Loading branch information
koic committed Oct 23, 2020
1 parent bf89658 commit 1e14a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -98,6 +98,9 @@ Layout/SpaceAroundEqualsInParameterDefault:
Layout/SpaceAroundKeyword:
Enabled: true

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceBeforeComma:
Enabled: true

Expand Down
Expand Up @@ -179,7 +179,7 @@ def oracle_downcase(column_name)
end

# if MRI or YARV or TruffleRuby
if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby"|| RUBY_ENGINE == "truffleruby"
if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "truffleruby"
require "active_record/connection_adapters/oracle_enhanced/oci_quoting"
# if JRuby
elsif RUBY_ENGINE == "jruby"
Expand Down

0 comments on commit 1e14a06

Please sign in to comment.