lib/tasks/rewrite_locales_utf8.rake
Complex method task#rewrite_locales_utf8 (26.0) Open
Open
task :rewrite_locales_utf8 do
require 'base64'
Dir[Rails.root.join("config/locales/*.yml")].each do |path|
content = File.read(path)
content.force_encoding('utf-8')
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool