dry-rb/dry-inflector

View on GitHub

Showing 1 of 1 total issue

Method singular has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def self.singular(inflect)
          inflect.singular(/s\z/i, "")
          inflect.singular(/(n)ews\z/i, '\1ews')
          inflect.singular(/([ti])a\z/i, '\1um')
          inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)\z/i, '\1\2sis')
Severity: Minor
Found in lib/dry/inflector/inflections/defaults.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language