lib/utilities/strings.rb
TODO found Open
Open
# TODO: DEPRECATE (doesn't belong here because to_sentence is Rails?
- Exclude checks
TODO found Open
Open
# TODO: Likely need to handle quotes, and write better UTF compliancy tests
- Exclude checks
TODO found Open
Open
return a if a.blank? # TODO: .blank is Rails, not OK here
- Exclude checks
unexpected token tDOT2
(Using Ruby 2.4 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
author_name = "#{authorship[..(year_match&.offset(0)&.first || 0)-1]}#{year_match&.[](:paren)}"
- Read upRead up
- Exclude checks
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
Open
author_name = "#{authorship[..(year_match&.offset(0)&.first || 0)-1]}#{year_match&.[](:paren)}"
- Read upRead up
- Exclude checks
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.