utils/analytics: strip out more data.

We've filter this out in `brew formula-analytics` too but let's avoid
sending it here in the first place so we can delete the
formula-analytics filtering later.
This commit is contained in:
Mike McQuaid 2024-07-14 13:15:09 -04:00
parent b33e28c95f
commit 2d345d89eb
No known key found for this signature in database

View File

@ -113,6 +113,10 @@ module Utils
# Strip out any flag values to reduce cardinality and preserve privacy. # Strip out any flag values to reduce cardinality and preserve privacy.
options_array.map! { |option| option.sub(/=.*/, "=") } options_array.map! { |option| option.sub(/=.*/, "=") }
# Strip out --with-* and --without-* options
options_array.reject! { |option| option.match(/^--with(out)?-/) }
options = options_array.sort.uniq.join(" ") options = options_array.sort.uniq.join(" ")
# Tags must have low cardinality. # Tags must have low cardinality.