DmitryTsepelev / rubocop-graphql

Rubocop extension for enforcing graphql-ruby best practices
MIT License
226 stars 50 forks source link

feat: use rubocop to calculate code length for ResolverMethodLength #154

Closed mbandrewfoster closed 7 months ago

mbandrewfoster commented 8 months ago

This will make the ResolverMethodLength cop behave the same way other base rubocop code length metrics work, such as https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/MethodLength and https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/ModuleLength

Adds the CountAsOne configuration option that can accept ’array’, ‘hash’, ‘heredoc’, and ‘method_call’