Tim Rühsen e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
..
README.md e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
pslint.py e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
pslint_selftest.sh e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_allowedchars.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_allowedchars.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_dots.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_dots.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_duplicate.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_duplicate.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_exception.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_exception.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_punycode.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_punycode.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section1.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section1.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section2.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section2.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section3.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section3.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section4.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_section4.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_spaces.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_spaces.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_wildcard.expected e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden
test_wildcard.input e6065d27b4 Add a linter for the PSL and use it on Travis CI 8 jaren geleden

README.md

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.

Usage

(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.

Selftest

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