Invoca / magic_frozen_string_literal

easily add '# frozen_string_literal: true' comments to the top of all your project's Ruby files
MIT License
159 stars 16 forks source link

Add a comment about Rubocop's EmptyLineAfterMagicComment Cop #15

Closed assafshomer closed 6 years ago

assafshomer commented 6 years ago

By default the gem does not add an extra line after the magic comment, which will fail Rubocop analysis due to EmptyLineAfterMagicComment. Can be solved by disabling that cop in rubocop.yml:

Layout/EmptyLineAfterMagicComment:
  Enabled: false