Tim Rühsen e6065d27b4 Add a linter for the PSL and use it on Travis CI | 8 rokov pred | |
---|---|---|
.. | ||
README.md | 8 rokov pred | |
pslint.py | 8 rokov pred | |
pslint_selftest.sh | 8 rokov pred | |
test_allowedchars.expected | 8 rokov pred | |
test_allowedchars.input | 8 rokov pred | |
test_dots.expected | 8 rokov pred | |
test_dots.input | 8 rokov pred | |
test_duplicate.expected | 8 rokov pred | |
test_duplicate.input | 8 rokov pred | |
test_exception.expected | 8 rokov pred | |
test_exception.input | 8 rokov pred | |
test_punycode.expected | 8 rokov pred | |
test_punycode.input | 8 rokov pred | |
test_section1.expected | 8 rokov pred | |
test_section1.input | 8 rokov pred | |
test_section2.expected | 8 rokov pred | |
test_section2.input | 8 rokov pred | |
test_section3.expected | 8 rokov pred | |
test_section3.input | 8 rokov pred | |
test_section4.expected | 8 rokov pred | |
test_section4.input | 8 rokov pred | |
test_spaces.expected | 8 rokov pred | |
test_spaces.input | 8 rokov pred | |
test_wildcard.expected | 8 rokov pred | |
test_wildcard.input | 8 rokov pred |
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