
Flag values that match a personal-information pattern
Source:R/data_check_helpers.R
data_check_pii_values.RdScans a column's values for standard PII patterns (email, IP address, SSN, credit-card-like). Reports which pattern matched and how many values, never the matching values themselves (so the report does not leak the PII).
Details
All current patterns are specific: they flag on a single validated match,
because for disclosure one real identifier is already a problem. A raw regex
match is necessary but not sufficient – the credit-card pattern must also pass
a Luhn checksum, which keeps ordinary numbers from tripping the flag. (A
broad-pattern path with a per-column fraction threshold, broad_min_frac, is
retained for future patterns but is currently unused.)