Tim Rühsen e6065d27b4 Add a linter for the PSL and use it on Travis CI | il y a 8 ans | |
---|---|---|
.. | ||
README.md | il y a 8 ans | |
pslint.py | il y a 8 ans | |
pslint_selftest.sh | il y a 8 ans | |
test_allowedchars.expected | il y a 8 ans | |
test_allowedchars.input | il y a 8 ans | |
test_dots.expected | il y a 8 ans | |
test_dots.input | il y a 8 ans | |
test_duplicate.expected | il y a 8 ans | |
test_duplicate.input | il y a 8 ans | |
test_exception.expected | il y a 8 ans | |
test_exception.input | il y a 8 ans | |
test_punycode.expected | il y a 8 ans | |
test_punycode.input | il y a 8 ans | |
test_section1.expected | il y a 8 ans | |
test_section1.input | il y a 8 ans | |
test_section2.expected | il y a 8 ans | |
test_section2.input | il y a 8 ans | |
test_section3.expected | il y a 8 ans | |
test_section3.input | il y a 8 ans | |
test_section4.expected | il y a 8 ans | |
test_section4.input | il y a 8 ans | |
test_spaces.expected | il y a 8 ans | |
test_spaces.input | il y a 8 ans | |
test_wildcard.expected | il y a 8 ans | |
test_wildcard.input | il y a 8 ans |
This directory contains a linter for the Public Suffix List.
Before you commit any changes to the PSL, please use the linter to check the syntax.
(from the repo's main directory)
$ linter/pslint.py public_suffix_list.dat
$? is set to 0 on success, else it is set to 1.
Every change on pslint.py should be followed by a self-test.
$ cd linter
$ ./pslint_selftest.sh
test_allowedchars: OK
test_dots: OK
test_duplicate: OK
test_exception: OK
test_punycode: OK
test_section1: OK
test_section2: OK
test_section3: OK
test_section4: OK
test_spaces: OK
test_wildcard: OK