Merge pull request #231 from di/more-ci-checks

More CI checks
This commit is contained in:
Dustin Ingram 2020-02-12 15:14:34 -06:00 committed by GitHub
commit 679d814aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 90 deletions

View File

@ -1,7 +1,4 @@
*.33mail.com
0-00.usa.cc
0-mail.com 0-mail.com
001.igg.biz
027168.com 027168.com
0815.ru 0815.ru
0815.ry 0815.ry
@ -62,12 +59,13 @@
1fsdfdsfsdf.tk 1fsdfdsfsdf.tk
1mail.ml 1mail.ml
1pad.de 1pad.de
1s.fr
1st-forms.com 1st-forms.com
1to1mail.org 1to1mail.org
1usemail.com 1usemail.com
1webmail.info 1webmail.info
1zhuan.com 1zhuan.com
2.0-00.usa.cc 2012-2016.ru
20email.eu 20email.eu
20email.it 20email.it
20mail.eu 20mail.eu
@ -92,7 +90,6 @@
30minutemail.com 30minutemail.com
30wave.com 30wave.com
3202.com 3202.com
333.igg.biz
33mail.com 33mail.com
36ru.com 36ru.com
3d-painting.com 3d-painting.com
@ -107,6 +104,7 @@
4mail.cf 4mail.cf
4mail.ga 4mail.ga
4nextmail.com 4nextmail.com
4nmv.ru
4tb.host 4tb.host
4warding.com 4warding.com
4warding.net 4warding.net
@ -158,12 +156,10 @@ a-bc.net
a45.in a45.in
a7996.com a7996.com
aa5zy64.com aa5zy64.com
ab0.igg.biz
abacuswe.us abacuswe.us
abakiss.com abakiss.com
abcmail.email abcmail.email
abilitywe.us abilitywe.us
abnamro.usa.cc
abovewe.us abovewe.us
absolutewe.us absolutewe.us
abundantwe.us abundantwe.us
@ -242,7 +238,6 @@ akgq701.com
al-qaeda.us al-qaeda.us
albionwe.us albionwe.us
alchemywe.us alchemywe.us
alfaromeo.igg.biz
aliaswe.us aliaswe.us
alienware13.com alienware13.com
aligamel.com aligamel.com
@ -350,7 +345,6 @@ aschenbrandt.net
asdasd.nl asdasd.nl
asdasd.ru asdasd.ru
ashleyandrew.com ashleyandrew.com
asiarap.usa.cc
ask-mail.com ask-mail.com
asorent.com asorent.com
ass.pp.ua ass.pp.ua
@ -358,10 +352,10 @@ astonut.tk
astroempires.info astroempires.info
asu.mx asu.mx
asu.su asu.su
at.hm
at0mik.org at0mik.org
atnextmail.com atnextmail.com
attnetwork.com attnetwork.com
audi.igg.biz
augmentationtechnology.com augmentationtechnology.com
ausgefallen.info ausgefallen.info
auti.st auti.st
@ -396,7 +390,6 @@ barryogorman.com
bartdevos.be bartdevos.be
basscode.org basscode.org
bauwerke-online.com bauwerke-online.com
baxomale.ht.cx
bazaaboom.com bazaaboom.com
bbbbyyzz.info bbbbyyzz.info
bbhost.us bbhost.us
@ -441,8 +434,8 @@ bladesmail.net
blip.ch blip.ch
blnkt.net blnkt.net
blogmyway.org blogmyway.org
blogos.net
blogspam.ro blogspam.ro
blow-job.nut.cc
bluedumpling.info bluedumpling.info
bluewerks.com bluewerks.com
bnote.com bnote.com
@ -518,7 +511,7 @@ caseedu.tk
casualdx.com casualdx.com
cavi.mx cavi.mx
cbair.com cbair.com
cc-cc.usa.cc cbes.net
cc.liamria cc.liamria
cdpa.cc cdpa.cc
ceed.se ceed.se
@ -535,7 +528,6 @@ chalupaurybnicku.cz
chammy.info chammy.info
cheaphub.net cheaphub.net
cheatmail.de cheatmail.de
chechnya.conf.work
chibakenma.ml chibakenma.ml
chickenkiller.com chickenkiller.com
chielo.com chielo.com
@ -561,6 +553,7 @@ click-email.com
clickdeal.co clickdeal.co
clipmail.eu clipmail.eu
clixser.com clixser.com
cloudns.cx
clrmail.com clrmail.com
cmail.club cmail.club
cmail.com cmail.com
@ -571,6 +564,7 @@ cndps.com
cnew.ir cnew.ir
cnmsg.net cnmsg.net
cnsds.de cnsds.de
co.cc
cobarekyo1.ml cobarekyo1.ml
cocovpn.com cocovpn.com
codeandscotch.com codeandscotch.com
@ -582,15 +576,13 @@ coldemail.info
compareshippingrates.org compareshippingrates.org
completegolfswing.com completegolfswing.com
comwest.de comwest.de
conf.work
consumerriot.com consumerriot.com
contbay.com contbay.com
cool.fr.nf
coolandwacky.us coolandwacky.us
coolimpool.org coolimpool.org
coreclip.com coreclip.com
correo.blogos.net
cosmorph.com cosmorph.com
courriel.fr.nf
courrieltemporaire.com courrieltemporaire.com
coza.ro coza.ro
crankhole.com crankhole.com
@ -727,8 +719,6 @@ divermail.com
divismail.ru divismail.ru
diwaq.com diwaq.com
dlemail.ru dlemail.ru
dm.w3internet.co.uk
dma.in-ulm.de
dmarc.ro dmarc.ro
dndent.com dndent.com
dnses.ro dnses.ro
@ -794,7 +784,6 @@ dwse.edu.pl
dyceroprojects.com dyceroprojects.com
dz17.net dz17.net
e-mail.com e-mail.com
e-mail.igg.biz
e-mail.org e-mail.org
e-marketstore.ru e-marketstore.ru
e-tomarigi.com e-tomarigi.com
@ -832,7 +821,6 @@ email-fake.tk
email-jetable.fr email-jetable.fr
email-lab.com email-lab.com
email-temp.com email-temp.com
email.cbes.net
email.net email.net
email1.pro email1.pro
email60.com email60.com
@ -846,7 +834,6 @@ emailcu.icu
emaildienst.de emaildienst.de
emaildrop.io emaildrop.io
emailfake.ml emailfake.ml
emailfake.nut.cc
emailfreedom.ml emailfreedom.ml
emailgo.de emailgo.de
emailias.com emailias.com
@ -881,7 +868,6 @@ emailtmp.com
emailto.de emailto.de
emailure.net emailure.net
emailwarden.com emailwarden.com
emailx.at.hm
emailxfer.com emailxfer.com
emailz.cf emailz.cf
emailz.ga emailz.ga
@ -991,7 +977,6 @@ fasttoyota.com
fastyamaha.com fastyamaha.com
fatflap.com fatflap.com
fbma.tk fbma.tk
fbmail.usa.cc
fddns.ml fddns.ml
fdfdsfds.com fdfdsfds.com
fer-gabon.org fer-gabon.org
@ -1015,12 +1000,10 @@ fitnesrezink.ru
fivemail.de fivemail.de
fixmail.tk fixmail.tk
fizmail.com fizmail.com
flashbox.5july.org
fleckens.hu fleckens.hu
flemail.ru flemail.ru
flowu.com flowu.com
flu-cc.flu.cc flu.cc
flucc.flu.cc
fluidsoft.us fluidsoft.us
flurred.com flurred.com
fly-ts.de fly-ts.de
@ -1059,7 +1042,6 @@ freeinbox.email
freelance-france.eu freelance-france.eu
freeletter.me freeletter.me
freemail.ms freemail.ms
freemail.tweakly.net
freemails.cf freemails.cf
freemails.ga freemails.ga
freemails.ml freemails.ml
@ -1097,6 +1079,7 @@ g2xmail.top
g3xmail.top g3xmail.top
g4hdrop.us g4hdrop.us
gafy.net gafy.net
gage.ga
galaxy.tv galaxy.tv
gally.jp gally.jp
gamail.top gamail.top
@ -1121,7 +1104,6 @@ geew.ru
gehensiemirnichtaufdensack.de gehensiemirnichtaufdensack.de
geldwaschmaschine.de geldwaschmaschine.de
gelitik.in gelitik.in
gen.uu.gl
genderfuck.net genderfuck.net
geronra.com geronra.com
geschent.biz geschent.biz
@ -1171,7 +1153,6 @@ glucosegrin.com
gmal.com gmal.com
gmatch.org gmatch.org
gmial.com gmial.com
gmx.fr.nf
gmx1mail.top gmx1mail.top
gmxmail.top gmxmail.top
gmxmail.win gmxmail.win
@ -1189,7 +1170,6 @@ gothere.biz
gotmail.com gotmail.com
gotmail.net gotmail.net
gotmail.org gotmail.org
gotti.otherinbox.com
gowikibooks.com gowikibooks.com
gowikicampus.com gowikicampus.com
gowikicars.com gowikicars.com
@ -1211,6 +1191,7 @@ gregorygamel.com
gregorygamel.net gregorygamel.net
grish.de grish.de
griuc.schule griuc.schule
grn.cc
grr.la grr.la
gruz-m.ru gruz-m.ru
gs-arc.org gs-arc.org
@ -1325,16 +1306,13 @@ huangniu8.com
hukkmu.tk hukkmu.tk
hulapla.de hulapla.de
humaility.com humaility.com
humn.ws.gy
hungpackage.com hungpackage.com
hushmail.cf hushmail.cf
huskion.net huskion.net
hvastudiesucces.nl hvastudiesucces.nl
hwsye.net hwsye.net
i-phone.nut.cc
i2pmail.org i2pmail.org
i6.cloudns.cc i6.cloudns.cc
i6.cloudns.cx
iaoss.com iaoss.com
ibnuh.bz ibnuh.bz
icantbelieveineedtoexplainthisshit.com icantbelieveineedtoexplainthisshit.com
@ -1348,6 +1326,7 @@ ieh-mail.de
iencm.com iencm.com
iffymedia.com iffymedia.com
ige.es ige.es
igg.biz
ignoremail.com ignoremail.com
ihateyoualot.info ihateyoualot.info
ihazspam.ca ihazspam.ca
@ -1363,6 +1342,7 @@ imgv.de
immo-gerance.info immo-gerance.info
imstations.com imstations.com
imul.info imul.info
in-ulm.de
inbax.tk inbax.tk
inbound.plus inbound.plus
inbox.si inbox.si
@ -1417,6 +1397,7 @@ ipsur.org
irabops.com irabops.com
irc.so irc.so
irish2me.com irish2me.com
irishspringrealty.com
iroid.com iroid.com
ironiebehindert.de ironiebehindert.de
irssi.tv irssi.tv
@ -1433,24 +1414,17 @@ iuemail.men
iwi.net iwi.net
ixx.io ixx.io
j-p.us j-p.us
j8k2.usa.cc
jafps.com jafps.com
jajxz.com jajxz.com
jamesbond.flu.cc
jamesbond.igg.biz
jamesbond.nut.cc
jamesbond.usa.cc
janproz.com janproz.com
jaqis.com jaqis.com
jdmadventures.com jdmadventures.com
jdz.ro jdz.ro
je-recycle.info je-recycle.info
jeie.igg.biz
jellow.ml jellow.ml
jellyrolls.com jellyrolls.com
jet-renovation.fr jet-renovation.fr
jetable.com jetable.com
jetable.fr.nf
jetable.net jetable.net
jetable.org jetable.org
jetable.pp.ua jetable.pp.ua
@ -1512,8 +1486,6 @@ kimsdisk.com
kingsq.ga kingsq.ga
kino-100.ru kino-100.ru
kiois.com kiois.com
kir.ch.tc
kiryubox.cu.cc
kismail.ru kismail.ru
kisstwink.com kisstwink.com
kitnastar.com kitnastar.com
@ -1541,8 +1513,6 @@ kpooa.com
krd.ag krd.ag
krsw.tk krsw.tk
krypton.tk krypton.tk
ks87.igg.biz
ks87.usa.cc
ksmtrck.tk ksmtrck.tk
kuhrap.com kuhrap.com
kulmeo.com kulmeo.com
@ -1563,7 +1533,6 @@ lackmail.ru
lacto.info lacto.info
lags.us lags.us
lain.ch lain.ch
lajoska.pe.hu
lak.pp.ua lak.pp.ua
lakelivingstonrealestate.com lakelivingstonrealestate.com
lakqs.com lakqs.com
@ -1621,11 +1590,9 @@ login-email.tk
logular.com logular.com
loh.pp.ua loh.pp.ua
loin.in loin.in
lol.ovpn.to
lolfreak.net lolfreak.net
lolmail.biz lolmail.biz
lookugly.com lookugly.com
lopl.co.cc
lordsofts.com lordsofts.com
lortemail.dk lortemail.dk
losemymail.com losemymail.com
@ -1665,7 +1632,6 @@ mail-temporaire.com
mail-temporaire.fr mail-temporaire.fr
mail-tester.com mail-tester.com
mail.by mail.by
mail.mezimages.net
mail.wtf mail.wtf
mail0.ga mail0.ga
mail1.top mail1.top
@ -1738,7 +1704,6 @@ mailinator.info
mailinator.net mailinator.net
mailinator.org mailinator.org
mailinator.us mailinator.us
mailinator.usa.cc
mailinator0.com mailinator0.com
mailinator1.com mailinator1.com
mailinator2.com mailinator2.com
@ -1809,7 +1774,6 @@ mailtv.tv
mailzi.ru mailzi.ru
mailzilla.com mailzilla.com
mailzilla.org mailzilla.org
mailzilla.orgmbx.cc
mainerfolg.info mainerfolg.info
makemenaughty.club makemenaughty.club
makemetheking.com makemetheking.com
@ -1838,7 +1802,6 @@ mebelnu.info
mechanicalresumes.com mechanicalresumes.com
medkabinet-uzi.ru medkabinet-uzi.ru
meepsheep.eu meepsheep.eu
mega.zik.dj
meinspamschutz.de meinspamschutz.de
meltedbrownies.com meltedbrownies.com
meltmail.com meltmail.com
@ -1863,7 +1826,6 @@ migmail.pl
migumail.com migumail.com
mihep.com mihep.com
mijnhva.nl mijnhva.nl
milk.gage.ga
ministry-of-silly-walks.de ministry-of-silly-walks.de
minsmail.com minsmail.com
mintemail.com mintemail.com
@ -1891,14 +1853,10 @@ molms.com
momentics.ru momentics.ru
monachat.tk monachat.tk
monadi.ml monadi.ml
moncourrier.fr.nf
monemail.fr.nf
moneypipe.net moneypipe.net
monmail.fr.nf
monumentmail.com monumentmail.com
moonwake.com moonwake.com
moot.es moot.es
mor19.uu.gl
moreawesomethanyou.com moreawesomethanyou.com
moreorcs.com moreorcs.com
morriesworld.ml morriesworld.ml
@ -1911,8 +1869,6 @@ moy-elektrik.ru
moza.pl moza.pl
mozej.com mozej.com
mp-j.ga mp-j.ga
mp-j.igg.biz
mp.igg.biz
mr24.co mr24.co
msgos.com msgos.com
mspeciosa.com mspeciosa.com
@ -1980,7 +1936,6 @@ nanonym.ch
naslazhdai.ru naslazhdai.ru
nationalgardeningclub.com nationalgardeningclub.com
nawmin.info nawmin.info
nbox.notif.me
nbzmr.com nbzmr.com
negated.com negated.com
neomailbox.com neomailbox.com
@ -2033,7 +1988,6 @@ nolemail.ga
nomail.cf nomail.cf
nomail.ga nomail.ga
nomail.pw nomail.pw
nomail.xl.cx
nomail2me.com nomail2me.com
nomorespamemails.com nomorespamemails.com
nonspam.eu nonspam.eu
@ -2041,11 +1995,11 @@ nonspammer.de
nonze.ro nonze.ro
noref.in noref.in
norseforce.com norseforce.com
nospam.ze.tc
nospam4.us nospam4.us
nospamfor.us nospamfor.us
nospamthanks.info nospamthanks.info
nothingtoseehere.ca nothingtoseehere.ca
notif.me
notmailinator.com notmailinator.com
notrnailinator.com notrnailinator.com
notsharingmy.info notsharingmy.info
@ -2057,8 +2011,7 @@ ntlhelp.net
nubescontrol.com nubescontrol.com
nullbox.info nullbox.info
nurfuerspam.de nurfuerspam.de
nut-cc.nut.cc nut.cc
nutcc.nut.cc
nutpa.net nutpa.net
nuts2trade.com nuts2trade.com
nwldx.com nwldx.com
@ -2115,6 +2068,7 @@ optimaweb.me
oranek.com oranek.com
ordinaryamerican.net ordinaryamerican.net
oreidresume.com oreidresume.com
orgmbx.cc
oroki.de oroki.de
oshietechan.link oshietechan.link
otherinbox.com otherinbox.com
@ -2122,7 +2076,6 @@ ourklips.com
ourpreviewdomain.com ourpreviewdomain.com
outlawspam.com outlawspam.com
outmail.win outmail.win
ovi.usa.cc
ovpn.to ovpn.to
owlpic.com owlpic.com
ownsyou.de ownsyou.de
@ -2145,7 +2098,7 @@ patonce.com
pavilionx2.com pavilionx2.com
payperex2.com payperex2.com
payspun.com payspun.com
pcusers.otherinbox.com pe.hu
pecinan.com pecinan.com
pecinan.net pecinan.net
pecinan.org pecinan.org
@ -2158,7 +2111,6 @@ pfui.ru
phone-elkey.ru phone-elkey.ru
photo-impact.eu photo-impact.eu
photomark.net photomark.net
phpbb.uu.gl
pi.vu pi.vu
piaa.me piaa.me
pig.pp.ua pig.pp.ua
@ -2259,7 +2211,6 @@ r4nd0m.de
ra3.us ra3.us
rabin.ca rabin.ca
rabiot.reisen rabiot.reisen
radiku.ye.vc
raetp9.com raetp9.com
rainbowly.ml rainbowly.ml
raketenmann.de raketenmann.de
@ -2283,7 +2234,6 @@ recipeforfailure.com
recode.me recode.me
reconmail.com reconmail.com
recyclemail.dk recyclemail.dk
reddit.usa.cc
redfeathercrow.com redfeathercrow.com
reftoken.net reftoken.net
regbypass.com regbypass.com
@ -2298,6 +2248,7 @@ remote.li
reptilegenetics.com reptilegenetics.com
resgedvgfed.tk resgedvgfed.tk
revolvingdoorhoax.org revolvingdoorhoax.org
rfc822.org
rhyta.com rhyta.com
richfinances.pw richfinances.pw
riddermark.de riddermark.de
@ -2367,10 +2318,6 @@ secure-mail.biz
secure-mail.cc secure-mail.cc
secured-link.net secured-link.net
securehost.com.es securehost.com.es
securemail.flu.cc
securemail.igg.biz
securemail.nut.cc
securemail.usa.cc
seekapps.com seekapps.com
seekjobs4u.com seekjobs4u.com
sejaa.lv sejaa.lv
@ -2442,7 +2389,6 @@ slushmail.com
sluteen.com sluteen.com
sly.io sly.io
smallker.tk smallker.tk
smap.4nmv.ru
smapfree24.com smapfree24.com
smapfree24.de smapfree24.de
smapfree24.eu smapfree24.eu
@ -2480,7 +2426,6 @@ soodonims.com
soon.it soon.it
spacebazzar.ru spacebazzar.ru
spam-be-gone.com spam-be-gone.com
spam.2012-2016.ru
spam.la spam.la
spam.org.es spam.org.es
spam.su spam.su
@ -2497,7 +2442,6 @@ spambog.net
spambog.ru spambog.ru
spambooger.com spambooger.com
spambox.info spambox.info
spambox.irishspringrealty.com
spambox.me spambox.me
spambox.org spambox.org
spambox.us spambox.us
@ -2549,7 +2493,6 @@ spamwc.cf
spamwc.ga spamwc.ga
spamwc.gq spamwc.gq
spamwc.ml spamwc.ml
speed.1s.fr
speedgaus.net speedgaus.net
sperma.cf sperma.cf
spikio.com spikio.com
@ -2612,7 +2555,6 @@ symphonyresume.com
syosetu.gq syosetu.gq
syujob.accountants syujob.accountants
szerz.com szerz.com
t.psh.me
tafmail.com tafmail.com
tafoi.gr tafoi.gr
taglead.com taglead.com
@ -2642,7 +2584,6 @@ temp-mail.org
temp-mail.pp.ua temp-mail.pp.ua
temp-mail.ru temp-mail.ru
temp-mails.com temp-mails.com
temp.headstrong.de
tempail.com tempail.com
tempalias.com tempalias.com
tempe-mail.com tempe-mail.com
@ -2862,9 +2803,8 @@ urhen.com
uroid.com uroid.com
us.af us.af
us.to us.to
usa-cc.usa.cc usa.cc
used-product.fr used-product.fr
username.e4ward.com
ushijima1129.cf ushijima1129.cf
ushijima1129.ga ushijima1129.ga
ushijima1129.gq ushijima1129.gq
@ -2956,7 +2896,6 @@ walala.org
walkmail.net walkmail.net
walkmail.ru walkmail.ru
wallm.com wallm.com
wasteland.rfc822.org
watch-harry-potter.com watch-harry-potter.com
watchever.biz watchever.biz
watchfull.net watchfull.net
@ -2972,13 +2911,11 @@ web2mailco.com
webcontact-france.eu webcontact-france.eu
webemail.me webemail.me
webm4il.info webm4il.info
webmail.igg.biz
webmail24.top webmail24.top
webtrip.ch webtrip.ch
webuser.in webuser.in
wee.my wee.my
wef.gr wef.gr
wefjo.grn.cc
weg-werf-email.de weg-werf-email.de
wegwerf-email-addressen.de wegwerf-email-addressen.de
wegwerf-email-adressen.de wegwerf-email-adressen.de
@ -3014,7 +2951,6 @@ whatpaas.com
whatsaas.com whatsaas.com
whiffles.org whiffles.org
whopy.com whopy.com
whtjddn.33mail.com
whyspam.me whyspam.me
wibblesmith.com wibblesmith.com
wickmail.net wickmail.net
@ -3040,12 +2976,12 @@ wpg.im
wralawfirm.com wralawfirm.com
writeme.us writeme.us
wronghead.com wronghead.com
ws.gy
wudet.men wudet.men
wuespdj.xyz wuespdj.xyz
wupics.com wupics.com
wuzup.net wuzup.net
wuzupmail.net wuzupmail.net
www.e4ward.com
wwwnew.eu wwwnew.eu
wxnw.net wxnw.net
x24.com x24.com
@ -3059,7 +2995,6 @@ xcpy.com
xemaps.com xemaps.com
xemne.com xemne.com
xents.com xents.com
xing886.uu.gl
xjoi.com xjoi.com
xl.cx xl.cx
xmail.com xmail.com
@ -3097,7 +3032,6 @@ ycn.ro
ye.vc ye.vc
yedi.org yedi.org
yep.it yep.it
yert.ye.vc
yhg.biz yhg.biz
ynmrealty.com ynmrealty.com
yodx.ro yodx.ro
@ -3109,7 +3043,6 @@ yopmail.fr
yopmail.gq yopmail.gq
yopmail.net yopmail.net
yopmail.pp.ua yopmail.pp.ua
yopmail.usa.cc
yordanmail.cf yordanmail.cf
you-spam.com you-spam.com
yougotgoated.com yougotgoated.com
@ -3142,6 +3075,7 @@ zarabotokdoma11.ru
zasod.com zasod.com
zaym-zaym.ru zaym-zaym.ru
zdenka.net zdenka.net
ze.tc
zebins.com zebins.com
zebins.eu zebins.eu
zehnminuten.de zehnminuten.de

View File

@ -29,7 +29,6 @@ def check_for_public_suffixes(filename):
lines = files[filename] lines = files[filename]
suffix_detected = False suffix_detected = False
psl = None psl = None
download_suffixes()
with open("public_suffix_list.dat", "r") as latest: with open("public_suffix_list.dat", "r") as latest:
psl = PublicSuffixList(latest) psl = PublicSuffixList(latest)
for i, line in enumerate(lines): for i, line in enumerate(lines):
@ -49,6 +48,22 @@ def check_for_public_suffixes(filename):
sys.exit(1) sys.exit(1)
def check_for_third_level_domains(filename):
with open("public_suffix_list.dat", "r") as latest:
psl = PublicSuffixList(latest)
invalid = {
line
for line in files[filename]
if len(psl.privateparts(line.strip())) > 1
}
if invalid:
print("The following domains contain a third or lower level domain in {!r}:".format(filename))
for line in sorted(invalid):
print("* {}".format(line))
sys.exit(1)
def check_for_non_lowercase(filename): def check_for_non_lowercase(filename):
lines = files[filename] lines = files[filename]
invalid = set(lines) - set(line.lower() for line in lines) invalid = set(lines) - set(line.lower() for line in lines)
@ -86,13 +101,19 @@ def check_for_intersection(filename_a, filename_b):
print("The following domains appear in both lists:") print("The following domains appear in both lists:")
for line in sorted(intersection): for line in sorted(intersection):
print("* {}".format(line)) print("* {}".format(line))
sys.exit(1)
if __name__ == "__main__": if __name__ == "__main__":
# Download the list of public suffixes
download_suffixes()
# Check if any domains have a public suffix # Check if any domains have a public suffix
check_for_public_suffixes(blocklist) check_for_public_suffixes(blocklist)
# Check if any domains are a third or lower level domain
check_for_third_level_domains(blocklist)
# Check if any domains are not lowercase # Check if any domains are not lowercase
check_for_non_lowercase(allowlist) check_for_non_lowercase(allowlist)
check_for_non_lowercase(blocklist) check_for_non_lowercase(blocklist)