-
Notifications
You must be signed in to change notification settings - Fork 440
Ignore frozen-string-literal magic comment #389
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
Comments
Nice, sorry I missed this one. Thanks for the report! |
I don’t often have file-level comments, but as I don’t typically use the Seattle-style for my class comments (below), I end up with # Not Seattle-style.
class Foo; end
##
# Seattle-style.
class Bar; end If I nest namespaces in a bunch of files, I end up with # frozen_string_literal: true
module Namespace
# A class that I care about.
class ThatICareAbout
end
end Each file that contains |
I believe that ruby supports magic comments in any order. Note that ruby appears to support a warn_indent magic comment which this doesn't handle.
Ignore frozen_string_literal magic comment (Fixes #389)
frozen-string-literal
magic comments are parsed and appear in the rdoc output as text in the file level comment. This can result in the ignoring of a file level comment that comes after the magic comment, if there is a line of whitespace between the magic comment line and the file level comment.The text was updated successfully, but these errors were encountered: