sgmap/boussole

View on GitHub
lib/tasks/db.rake

Summary

Maintainability
Test Coverage

Please use Rails.root.join('path', 'to') instead.
Open

        "#{Rails.root}/db/latest.dump"
Severity: Minor
Found in lib/tasks/db.rake by rubocop

This cop is used to identify usages of file path joining process to use Rails.root.join clause.

Example:

# bad Rails.root.join('app/models/goober') File.join(Rails.root, 'app/models/goober') "#{Rails.root}/app/models/goober"

# good Rails.root.join('app', 'models', 'goober')

Please use Rails.root.join('path', 'to') instead.
Open

        "--file=#{Rails.root}/db/latest.dump",
Severity: Minor
Found in lib/tasks/db.rake by rubocop

This cop is used to identify usages of file path joining process to use Rails.root.join clause.

Example:

# bad Rails.root.join('app/models/goober') File.join(Rails.root, 'app/models/goober') "#{Rails.root}/app/models/goober"

# good Rails.root.join('app', 'models', 'goober')

Unnecessary utf-8 encoding comment.
Open

# encoding: utf-8
Severity: Minor
Found in lib/tasks/db.rake by rubocop

There are no issues that match your filters.

Category
Status