Skip to content
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

Merge pull request #2151 from yahonda/fix2139 #2160

Merged
merged 2 commits into from
Mar 31, 2021

Conversation

yahonda
Copy link
Collaborator

@yahonda yahonda commented Mar 31, 2021

This pull request backports #2151 to release61 branch.

Address `FrozenError (can't modify frozen Hash):` error
The offense itself has been fixed by rsim@d105887 at master branch.
`git cherry-pick d105887` conflics then executed `bundle exec rubocop -a` for release61 branch.

```
$ bundle exec rubocop -v
1.12.0
$ bundle exec rubocop -a
Inspecting 70 files
...................W..................................................

Offenses:

lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:13:52: C: [Corrected] Style/RedundantBegin: Redundant begin block detected.
          self.class.quoted_column_names[name] ||= begin
                                                   ^^^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:14:11: C: [Corrected] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
              "\"#{name.upcase}\""
          ^^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:15:13: C: [Corrected] Layout/ElseAlignment: Align else with self.class.quoted_column_names[name].
            else
            ^^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:16:15: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 14 instead of 12).
              # remove double quotes which cannot be used inside quoted identifier
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:17:11: C: [Corrected] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
              "\"#{name.gsub('"', '')}\""
          ^^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:18:13: W: [Corrected] Layout/EndAlignment: end at 18, 12 is not aligned with self.class.quoted_column_names[name] ||= if at 13, 10.
            end
            ^^^
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:19:1: C: [Corrected] Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.
lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:19:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected.

70 files inspected, 8 offenses detected, 8 offenses corrected

Tip: Based on detected gems, the following RuboCop extension libraries might be helpful:
  * rubocop-rake (https://github.com/rubocop/rubocop-rake)
  * rubocop-rspec (https://github.com/rubocop/rubocop-rspec)

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false
$
```
@yahonda
Copy link
Collaborator Author

yahonda commented Mar 31, 2021

@yahonda yahonda merged commit 0b31684 into rsim:release61 Mar 31, 2021
@yahonda yahonda deleted the backport_2151_to_release61 branch June 9, 2024 07:53
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.

1 participant