class Swagcov::Coverage
def third_party_route? route, path, rails_version
def third_party_route? route, path, rails_version # https://github.com/rails/rails/blob/48f3c3e201b57a4832314b2c957a3b303e89bfea/actionpack/lib/action_dispatch/routing/inspector.rb#L105-L107 # Skips route paths like ["/rails/info/properties", "/rails/info", "/rails/mailers"] internal_rails_route?(route, rails_version) || # Skips routes like "/sidekiq" route.verb.blank? || # Exclude routes that are part of the rails gem that you would not write documentation for # https://github.com/rails/rails/tree/main/activestorage/app/controllers/active_storage # https://github.com/rails/rails/tree/main/actionmailbox/app/controllers/action_mailbox path.include?("/active_storage/") || path.include?("/action_mailbox/") end