tree: fdc0b11fe9b572bc375947df919a379c6c3aaaf4 [path history] [tgz]
  1. pslint.py
  2. pslint_selftest.sh
  3. README.md
  4. test_allowedchars.expected
  5. test_allowedchars.input
  6. test_dots.expected
  7. test_dots.input
  8. test_duplicate.expected
  9. test_duplicate.input
  10. test_exception.expected
  11. test_exception.input
  12. test_NFKC.expected
  13. test_NFKC.input
  14. test_punycode.expected
  15. test_punycode.input
  16. test_section1.expected
  17. test_section1.input
  18. test_section2.expected
  19. test_section2.input
  20. test_section3.expected
  21. test_section3.input
  22. test_section4.expected
  23. test_section4.input
  24. test_spaces.expected
  25. test_spaces.input
  26. test_wildcard.expected
  27. test_wildcard.input
linter/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