Commit e0d2a010 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-danger-frozen-string-literal' into 'master'

Fix detection of frozen_string_literal comments

See merge request gitlab-org/gitlab!51486
parents 326a45e9 d941d19e
...@@ -7,7 +7,7 @@ SHEBANG_COMMENT = "#!" ...@@ -7,7 +7,7 @@ SHEBANG_COMMENT = "#!"
def get_files_with_no_magic_comment(files) def get_files_with_no_magic_comment(files)
files.select do |path| files.select do |path|
path.end_with?(FILE_EXTENSION) && path.end_with?(FILE_EXTENSION) &&
file_has_frozen_string_magic_comment?(path) !file_has_frozen_string_magic_comment?(path)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment