When a hard-coded string contains a valid URI, raise an issue if the URI scheme is one of the following value:
- ftp (see exception in the next section)
- smtp (see exception in the next section)
Code examples for default value of an optional parameter
libcurl supports both FTP and SMTP protocols.
It has a global option to use TLS for both protocols:
If the hard-coded URI is used as `curl_easy_setopt` 3rd argument an issue should only be raised if:
- CURLOPT_USE_SSL is not set
- CURLOPT_USE_SSL is set to a different value than CURLUSESSL_ALL
No issue should be raise if the URI scheme is a clear text protocol but the domain is a loop-back address.
Here is the regular expression used to match loop-back addresses in the Python rule: