Coding Standards

From WeBWorK_wiki
Revision as of 13:27, 31 March 2023 by Dglin (talk | contribs) (Remove outdated stuff, and reference perltidy)
Jump to navigation Jump to search

Submissions to the WeBWorK code are now subject to coding standards, and pull requests that do not meet these standards will not be merged.

More detail on the standards will be included in this page in the future. For now a good place to start is to make sure you run perltidy on your code. In particular there is a script at $WEBWORK_ROOT/bin/dev_scripts/run-perltidy to do this. You can reference https://github.com/openwebwork/webwork2/blob/main/.perltidyrc to see what this is doing.