SpeciesFileGroup/taxonworks

View on GitHub
lib/queries/source/filter.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

            .where('project_sources.project_id != ? OR project_sources.id IS NULL', project_id) # TODO: probably project_id
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # TODO: move to generalized code in Identifiers concern
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # !! TODO - conflicts with citations?  !! - yes, this is *used in citations*
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

        @citations = boolean_param(params,:citations) # TODO: rename coming to reflect conflict with Citations concern
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # TODO: move to a concern
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # TODO: move tc citations concern
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

        @query_string = params[:query_term]&.delete("\u0000") # TODO: likely remove with current permit() paradigm
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # TODO: move to a concern
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

TODO found
Open

      # TODO: Change to source_id
Severity: Minor
Found in lib/queries/source/filter.rb by fixme

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

          b = ::Source.joins(:project_sources).where(project_sources: {project_id: }).where.missing(:documentation).distinct
Severity: Minor
Found in lib/queries/source/filter.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

          .where(citations: {citation_object_type:}).distinct
Severity: Minor
Found in lib/queries/source/filter.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

        ::Source.joins(:citation_topics).where(citation_topics: { topic_id:}).distinct
Severity: Minor
Found in lib/queries/source/filter.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

          ::Source.joins(:documents, :project_sources).where(project_sources: {project_id:}).distinct
Severity: Minor
Found in lib/queries/source/filter.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

unexpected token tRCURLY (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

            .where(project_sources: {project_id:})
Severity: Minor
Found in lib/queries/source/filter.rb by rubocop

This is not actually a cop. It does not inspect anything. It just provides methods to repack Parser's diagnostics/errors into RuboCop's offenses.

There are no issues that match your filters.

Category
Status