Skip to main content

clean_and_redact

Function clean_and_redact 

Source
pub fn clean_and_redact(code: &str) -> String
Expand description

Cleans and redacts code in the proper order:

  1. Redact secrets
  2. Remove lines with only redacted content
  3. Clean code (remove comments, imports, etc.)