SpeciesFileGroup/taxonworks

View on GitHub
config/routes/base.rb

Summary

Maintainability
A
0 mins
Test Coverage

Prefer symbols instead of strings as hash keys.
Open

  get ':id' => 'shortener/shortened_urls#show'
Severity: Minor
Found in config/routes/base.rb by rubocop

This cop checks for the use of strings as keys in hashes. The use of symbols is preferred instead.

Example:

# bad
{ 'one' => 1, 'two' => 2, 'three' => 3 }

# good
{ one: 1, two: 2, three: 3 }

Prefer symbols instead of strings as hash keys.
Open

get 'soft_validations/validate' => 'soft_validations#validate', defaults: {format: :json}
Severity: Minor
Found in config/routes/base.rb by rubocop

This cop checks for the use of strings as keys in hashes. The use of symbols is preferred instead.

Example:

# bad
{ 'one' => 1, 'two' => 2, 'three' => 3 }

# good
{ one: 1, two: 2, three: 3 }

Prefer symbols instead of strings as hash keys.
Open

post 'soft_validations/fix' => 'soft_validations#fix', defaults: {format: :json}
Severity: Minor
Found in config/routes/base.rb by rubocop

This cop checks for the use of strings as keys in hashes. The use of symbols is preferred instead.

Example:

# bad
{ 'one' => 1, 'two' => 2, 'three' => 3 }

# good
{ one: 1, two: 2, three: 3 }

Prefer symbols instead of strings as hash keys.
Open

get '/crash_test/' => 'crash_test#index' unless Rails.env.production?
Severity: Minor
Found in config/routes/base.rb by rubocop

This cop checks for the use of strings as keys in hashes. The use of symbols is preferred instead.

Example:

# bad
{ 'one' => 1, 'two' => 2, 'three' => 3 }

# good
{ one: 1, two: 2, three: 3 }

There are no issues that match your filters.

Category
Status