diff --git a/Library/Homebrew/.rubocop_todo.yml b/Library/Homebrew/.rubocop_todo.yml index a74f62002a..182512a20a 100644 --- a/Library/Homebrew/.rubocop_todo.yml +++ b/Library/Homebrew/.rubocop_todo.yml @@ -27,5 +27,4 @@ Style/Documentation: - 'utils/shell.rb' - 'utils/spdx.rb' - 'utils/livecheck_formula.rb' - - 'utils/repology.rb' - 'version.rb' diff --git a/Library/Homebrew/utils/repology.rb b/Library/Homebrew/utils/repology.rb index 8718b04bd1..7476b6b843 100644 --- a/Library/Homebrew/utils/repology.rb +++ b/Library/Homebrew/utils/repology.rb @@ -2,10 +2,14 @@ require "utils/curl" +# Repology API client. +# +# @api private module Repology module_function MAX_PAGINATION = 15 + private_constant :MAX_PAGINATION def query_api(last_package_in_response = "") last_package_in_response += "/" if last_package_in_response.present?