Commands
goodcheck init [options]#
The init command generates an example of a configuration file.
Available options are:
-c [CONFIG],--config=[CONFIG]to specify the configuration file name to generate--forceto allow overwriting of an existing config file
goodcheck check [options] targets...#
The check command checks your programs under targets....
You can pass directories or files.
When you omit targets, it checks all files in . (the current directory).
Available options are:
-c [CONFIG],--config=[CONFIG]to specify the configuration file-R [rule],--rule=[rule]to specify the rules you want to check--format=[text|json]to specify output format-v,--verboseto be verbose--debugto print all debug messages--forceto ignore downloaded caches
You can check its exit status to identify if the tool finds some pattern or not.
goodcheck test [options]#
The test command tests rules.
The test contains:
- validation of rule
iduniqueness - if
passexamples does not match with any ofpatterns - if
failexamples matches with some ofpatterns
Use the test command when you add a new rule to be sure you are writing rules correctly.
Available options are:
-c [CONFIG],--config=[CONFIG]to specify the configuration file-v,--verboseto be verbose--debugto print all debug messages--forceto ignore downloaded caches
goodcheck pattern [options] ids...#
The pattern command prints the regular expressions generated from the patterns.
The command is for debugging patterns, especially token patterns.
An available option is:
-c [CONFIG],--config=[CONFIG]to specify the configuration file
goodcheck help#
The help command prints the full help text.
Exit status#
The goodcheck command exits with the status:
0when it succeeds or does not find any matching text fragment1when it encounters an fatal error2when it finds some matching text3when it finds some test failure