Adrian Secord 6733f7c44b Build out our scripted component checks (#940)
* Add README.md to scripts/check.

* Generalized the check_components script.

* Renamed `missing_readme` to `readme`.
* Added documentation to the `scripts/check` directory.
* Disabled the `scripts/check/missing_example_language` script.

* Cleanup verbose echoing in check_components script.

* Added more verbosity options.

* Added check for accessible URLs.

* Added option parsing.

* Added left-nav checks.

* Added license stanza check.

* Added reporting of failed components to check_components script.

* Added a script to convert between naming conventions.

* Added script to check for videos.

* Added check for video still.

* Added script to check for site icon.

* Added DO NOT SUBMIT check.

* Properly quoted output file paths.

* Added check for examples.

* Updated checklist docs for new script setup.

* Added check for example languages in README.md files.

Deleted old PHP code.

* Added missing exit(-1) from example_languages.

* Added uniform error output to example_languages.
2016-12-05 11:26:17 -05:00

823 B

Component checking scripts

Scripts in this directory check a "component" for various things. They are generally run by the driver script scripts/check_components, but can be run by themselves.

Script requirements

  1. Each script should take a single directory path to a component and perform some check on the component. For example, a script might check to see that a component has a README.md file.
    • If the component passes the check, print nothing and exit with a status of zero (success).
    • If the component does not pass the check, print a brief error message and exit with a non-zero status (failure).
  2. To be identified as a check script to be run by the scripts/check_components driver script, each check script should be marked executable (e.g. chmod +x check/the_check_script).