SpeciesFileGroup/taxonworks

View on GitHub
lib/utilities/strings.rb

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

  # TODO: DEPRECATE (doesn't belong here because to_sentence is Rails?
Severity: Minor
Found in lib/utilities/strings.rb by fixme

TODO found
Open

  #   TODO: Likely need to handle quotes, and write better UTF compliancy tests
Severity: Minor
Found in lib/utilities/strings.rb by fixme

TODO found
Open

    return a if a.blank? # TODO: .blank is Rails, not OK here
Severity: Minor
Found in lib/utilities/strings.rb by fixme

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

    author_name = "#{authorship[..(year_match&.offset(0)&.first || 0)-1]}#{year_match&.[](:paren)}"
Severity: Minor
Found in lib/utilities/strings.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 tRBRACK (Using Ruby 2.4 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

    author_name = "#{authorship[..(year_match&.offset(0)&.first || 0)-1]}#{year_match&.[](:paren)}"
Severity: Minor
Found in lib/utilities/strings.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