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

[Fix #10014] Fix Style/Encoding to handle more situations properly #10023

Merged
merged 1 commit into from Aug 18, 2021

Commits on Aug 17, 2021

  1. [Fix rubocop#10014] Fix Style/Encoding to handle more situations pr…

    …operly.
    
    Refactors `Style/Encoding` to make use of the `MagicComment` class. Now `Style/Encoding` can handle the following situations:
    * multiple encoding magic comments
    * encoding magic comments following other magic comments
    * magic comments containing multiple directives (only the encoding is removed)
    dvandersluis committed Aug 17, 2021
    Copy the full SHA
    74abc92 View commit details
    Browse the repository at this point in the history