Loading
fix: resolve rubocop violations in rate_limit implementation
- rescue StandardError instead of bare rescue (Style/RescueStandardError) - Refactor evaluate to avoid return from block; fail-open rescue moved to outer method (Cop/AvoidReturnFromBlocks) - Use guard clauses in validate_call_site! and resolve_characteristic (Style/GuardClause) - Rename increment_counter -> incr_with_ttl to avoid Rails/SkipsModelValidations false positive - Remove parentheses from ternary condition (Style/TernaryParentheses) - Replace Digest::SHA256 with OpenSSL::Digest::SHA256 for FIPS compliance (Fips/OpenSSL) - Use ENV.fetch instead of ENV[] (Style/FetchEnvVar) - Move normalize_endpoint class method before instance methods in Identifier (Layout/ClassStructure)