Skip to content

Commit a2ccdca

Browse files
committed
pylint
1 parent e580000 commit a2ccdca

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/email_validator.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ def get_interesting_urls(content, org_url_start, depth):
320320
security_txt_url = f'{root_url}.well-known/security.txt'
321321
urls[security_txt_url] = get_default_info(
322322
security_txt_url, '.well-known/security.txt', 'url.text', 0.15, 10)
323-
# TODO: Lets look in DMARC records for emails.
324323

325324
if len(urls) > 0:
326325
tmp = sorted(urls.items(), key=get_sort_on_precision)
@@ -848,7 +847,11 @@ def Rate_Use_of_PTR_for_SPF_Policies(global_translation, rating, result_dict, lo
848847
return rating
849848

850849

851-
def Rate_Fail_Configuration_for_SPF_Policies(global_translation, rating, result_dict, local_translation):
850+
def Rate_Fail_Configuration_for_SPF_Policies(
851+
global_translation,
852+
rating,
853+
result_dict,
854+
local_translation):
852855
if 'spf-uses-ignorefail' in result_dict:
853856
has_spf_ignore_records_rating = Rating(
854857
global_translation, REVIEW_SHOW_IMPROVEMENTS_ONLY)
@@ -932,7 +935,11 @@ def Rate_has_SPF_Policies(global_translation, rating, result_dict, local_transla
932935
return rating
933936

934937

935-
def Rate_Too_many_DNS_lookup_for_SPF_Policies(global_translation, rating, result_dict, local_translation):
938+
def Rate_Too_many_DNS_lookup_for_SPF_Policies(
939+
global_translation,
940+
rating,
941+
result_dict,
942+
local_translation):
936943
if 'spf-error-to-many-dns-lookups' in result_dict:
937944
to_many_spf_dns_lookups_rating = Rating(
938945
global_translation, REVIEW_SHOW_IMPROVEMENTS_ONLY)
@@ -1059,22 +1066,17 @@ def Validate_SPF_Policy(global_translation, local_translation, hostname, result_
10591066
elif section.startswith('v=spf1'):
10601067
c = 1
10611068
elif section.startswith('mx') or section.startswith('+mx'):
1062-
# TODO: What do this do and should we rate on it?
10631069
c = 1
10641070
elif section.startswith('a') or section.startswith('+a'):
1065-
# TODO: What do this do and should we rate on it?
10661071
c = 1
10671072
elif section.startswith('ptr') or section.startswith('+ptr'):
10681073
# What do this do and should we rate on it?
10691074
result_dict['spf-uses-ptr'] = True
10701075
elif section.startswith('exists:'):
1071-
# TODO: What do this do and should we rate on it?
10721076
c = 1
10731077
elif section.startswith('redirect='):
1074-
# TODO: What do this do and should we rate on it?
10751078
c = 1
10761079
elif section.startswith('exp='):
1077-
# TODO: What do this do and should we rate on it?
10781080
c = 1
10791081
else:
10801082
result_dict['spf-uses-none-standard'] = True

0 commit comments

Comments
 (0)