8000 GitHub - symfony-tools/code-block-checker at 628f5bc77a7ada89cf7c76050d6cd3c494eae397
[go: up one dir, main page]

Skip to content

symfony-tools/code-block-checker

Repository files navigation

Code block checker

Make sure that code blocks have valid syntax and can actually run.

$ ./code-block-checker.php verify:docs /path/to/docs cache.rst controller.rst --env=dev

::error file=cache,line=377::[Invalid syntax] PHP Parse error:  syntax error, unexpected token "}"

 [ERROR] Build completed with 1 errors


$ ./code-block-checker.php verify:docs /path/to/docs cache.rst controller.rst --env=dev --generate-baseline=baseline.json
$ ./code-block-checker.php verify:docs /path/to/docs cache.rst controller.rst --env=dev --baseline=baseline.json

 [OK] Build completed successfully!

About

Check the Symfony docs code blocks

Resources

Stars

Watchers

Forks

Contributors 11

Languages

0