TracksApp/tracks

View on GitHub
lib/tasks/rewrite_locales_utf8.rake

Summary

Maintainability
Test Coverage

Complex method task#rewrite_locales_utf8 (26.0)
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')
Severity: Minor
Found in lib/tasks/rewrite_locales_utf8.rake by flog

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

There are no issues that match your filters.

Category
Status