This rule reports errors when a "sensitive" type is used inside a string interpolation.
scalafixDependencies += "com.alejandrohdezma" %% "sensitive-strings" % "0.4.0"
By default, this rule does not disable any particular type. Add them to symbols
configuration.
NoSensitiveStrings.symbols = []
NoSensitiveStrings.regex = []
NoSensitiveStrings.symbols = [
com.alejandrohdezma.domain.Password,
com.alejandrohdezma.domain.UserContext,
com.alejandrohdezma.domain.UserAccount
]
NoSensitiveStrings.regex = [
"com\\.alejandrohdezma\\.domain\\..*"
]
As you can see in the previous example, you can also match against a list of regex using the regex
configuration and providing a list of patterns.