mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
checked all .rb files in the project tree for missing magic comments, one was missing
Came with this one-liner for this:
find . -name '*.rb' | \
xargs chardet | \
grep -v ascii | \
cut -d: -f1 -s | \
xargs -n1 ruby -0777 -ne 'puts $FILENAME if $_ !~ /#.*coding:\s*utf/i'
Welcome $_.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# encoding: utf-8
|
||||
|
||||
require 'active_support/core_ext/big_decimal/conversions'
|
||||
require 'active_support/core_ext/float/rounding'
|
||||
require 'active_support/core_ext/object/blank'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# encoding: UTF-8
|
||||
# encoding: utf-8
|
||||
require 'abstract_unit'
|
||||
require 'active_support/json'
|
||||
require 'active_support/time'
|
||||
|
||||
Reference in New Issue
Block a user