SpeciesFileGroup/taxonworks

View on GitHub
config/routes/data.rb

Summary

Maintainability
C
1 day
Test Coverage

File data.rb has 544 lines of code (exceeds 250 allowed). Consider refactoring.
Open

concern :data_routes do |options|
  collection do
    get 'download'
    get 'list'
    post 'batch_create'
Severity: Major
Found in config/routes/data.rb - About 1 day to fix

    TODO found
    Open

        # TODO: this is get
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

        get :autocomplete, defaults: {format: :json} # TODO: add JSON to all autocomplete as default, until then this line has to be above concerns
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

        # TODO: this is get
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

        post 'display_coordinates' # TODO should not be POST
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

      # TODO, check
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

    # TODO: This will have to be broken down to core_data_routes, and supporting_data_routes
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

        # TODO: this is get
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

        # TODO: this is get
    Severity: Minor
    Found in config/routes/data.rb by fixme

    TODO found
    Open

    # TODO: fix broken interfaces, deprecate?
    Severity: Minor
    Found in config/routes/data.rb by fixme

    There are no issues that match your filters.

    Category
    Status