aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-06-06 18:10:47 -0400
committerJack Nagel2015-06-08 22:27:28 -0400
commitd3ab5e6034c62b9da5c4c5f5e07a86f277a760e7 (patch)
tree6919fb9cdf807c3fa808030c37be8ac143fe560b /Library
parent7d8bec3f20112151d1a295e6825ec8f5f3e9fc32 (diff)
downloadbrew-d3ab5e6034c62b9da5c4c5f5e07a86f277a760e7.tar.bz2
Revert "audit: add rules for non-ascii character and encoding comment"
This reverts commit ab8fe812377bc60cc18fe8d7c1ea8ce2f0269294.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 6ebe1af62..51388c905 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -74,14 +74,6 @@ class FormulaText
/\Z\n/ =~ @text
end
- def has_non_ascii_character?
- /[^\x00-\x7F]/ =~ @text
- end
-
- def has_encoding_comment?
- /^# (en)?coding: utf-8$/i =~ @text
- end
-
def =~ regex
regex =~ @text
end
@@ -130,14 +122,6 @@ class FormulaAuditor
problem "'__END__' was found, but 'DATA' is not used"
end
- if text.has_non_ascii_character? and not text.has_encoding_comment?
- problem "Found non-ASCII character: add `# encoding: UTF-8` in the first line"
- end
-
- if text.has_encoding_comment? and not text.has_non_ascii_character?
- problem "Remove the redundant `# encoding: UTF-8`"
- end
-
unless text.has_trailing_newline?
problem "File should end with a newline"
end