dburkart / check-sieve

Syntax checker for mail sieves.
MIT License
34 stars 7 forks source link

check-sieve doesn't print out hints anymore #31

Open dburkart opened 8 years ago

dburkart commented 8 years ago

check-sieve used to print out hints after finding syntax issues, but doesn't anymore since I implemented the AST.

dburkart commented 5 years ago

This is half fixed; for commands we now do validation w/ usage strings. For example:

Errors found in "test.sieve":

Incorrect syntax for command "fileinto".
On line 3:
fileinto;
^^^^^^^^
Usage: fileinto [:flags <list-of-flags: string-list>][:copy] <folder: string>

Validation just needs to be added for tests now.