SpeciesFileGroup/taxonworks

View on GitHub
app/helpers/workbench/map_shape.rb

Summary

Maintainability
A
0 mins
Test Coverage

Prefer symbols instead of strings as hash keys.
Open

        'map-shape' => true,
Severity: Minor
Found in app/helpers/workbench/map_shape.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

        'geojson-string' => params[:geojson_string], 
Severity: Minor
Found in app/helpers/workbench/map_shape.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

        'geojson-object' => params[:geojson_object], 
Severity: Minor
Found in app/helpers/workbench/map_shape.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