Skip to content

Commit fee7254

Browse files
horghclaude
andcommitted
Move rubocop directive inside Validates module
The rubocop:disable comment placed before `module Minfraud` was being interpreted by YARD as documentation text, causing "rubocop:disable Metrics/ModuleLength" to appear on the Minfraud.html documentation page. Moving the directive inside the module (as part of the Validates module documentation block) prevents YARD from picking it up while still applying to the correct scope. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6ba0543 commit fee7254

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/minfraud/validates.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
require 'ipaddr'
55
require 'uri'
66

7-
# rubocop:disable Metrics/ModuleLength
87
module Minfraud
98
# @!visibility private
109
# Validates provides validation helper methods for component input values.
1110
# These methods are used internally when validation is enabled via
1211
# Minfraud.enable_validation.
12+
#
13+
# rubocop:disable Metrics/ModuleLength
1314
module Validates
1415
# Validates that a string value does not exceed a maximum length.
1516
#
@@ -331,6 +332,6 @@ def validate_uri(field, value)
331332
end
332333
# rubocop:enable Style/RescueStandardError
333334
end
335+
# rubocop:enable Metrics/ModuleLength
334336
end
335337
end
336-
# rubocop:enable Metrics/ModuleLength

0 commit comments

Comments
 (0)